Skip to content

Commit

Permalink
Order people by surname in lists, unless otherwise specified
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopernpruner committed Aug 17, 2023
1 parent 9cd3cce commit 7e2d275
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/list-people.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
{% if sort %}
{% assign people = peopleFromId | sort_natural: sort %}
{% else %}
{% assign people = peopleFromId %}
{% if sort == "none" %}
{% assign people = peopleFromId %}
{% else %}
{% assign people = peopleFromId | sort_natural: surname %}
{% endif %}
{% endif %}

{% for person in people %}
Expand Down

0 comments on commit 7e2d275

Please sign in to comment.