| title | Alumni |
|---|---|
| subtitle | Ordered by year of graduation |
| layout | default |
| show_sidebar | false |
| hide_footer | false |
{% comment %}
Sort key = "YYYY" + "MM" + "|" + path, sorted descending.
Recent graduates come first; within a year, later months come first.
If graduation_month is missing/unrecognized, MM = "00", so that person falls
after the dated ones of the same year, in the old (reverse-filename) order.
{% endcomment %}
{% assign past_phds = site.team | where:"category","past_phd" %}
{% assign month_names = "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec" | split: "," %}
{% assign sort_keys = "" | split: "" %}
{% for person in past_phds %}
{% assign mm = "00" %}
{% assign m = person.graduation_month | downcase | strip | slice: 0, 3 %}
{% for name in month_names %}
{% if name == m %}
{% assign mm = forloop.index | prepend: "0" | slice: -2, 2 %}
{% endif %}
{% endfor %}
{% capture key %}{{ person.graduation_year }}{{ mm }}|{{ person.path }}{% endcapture %}
{% assign sort_keys = sort_keys | push: key %}
{% endfor %}
{% assign sort_keys = sort_keys | sort | reverse %}
{% for key in sort_keys %}
{% assign key_path = key | split: "|" | last %}
{% assign person = past_phds | where: "path", key_path | first %}
{% endfor %}
{% assign sorted_person = site.team | where:"category","past_master" | sort: "graduation_year" | reverse %}
{% for person in sorted_person %}
{% endfor %}