Topic on Project:Support desk

Sorting citation list items by keys

1
76.191.27.62 (talkcontribs)

Hi all, I am trying to find ways to auto-sort a list of citations (like *{{cite book|title=book A|year=2000}} *{{cite book| book B|year=1990}}) by their year published.


I already know how this can be partly done via sort_list (https://en.wikipedia.org/wiki/Template:Sort_list), which can re-sort a list by item's alphabetical order, in the case of a list of citations, this is usually a sorted list of the authors' last name. However, could something be done to parse out the year within the citation text, and re-sort them by the year (or other keys) as well?


This could be done easier probably via a "wikitable sortable," but it would be great to know what's possible for a list. Thanks!

Reply to "Sorting citation list items by keys"