Fix sorting: ignore case.

This commit is contained in:
Flancian 2020-11-16 13:45:17 +01:00
parent f0284bb8a6
commit 34a08af78c

View file

@ -130,7 +130,7 @@ def all_nodes(include_journals=True):
# TODO: experiment with other ranking. # TODO: experiment with other ranking.
# return sorted(nodes, key=lambda x: -x.size()) # return sorted(nodes, key=lambda x: -x.size())
return sorted(nodes, key=lambda x: x.wikilink) return sorted(nodes, key=lambda x: x.wikilink.lower())
def all_users(): def all_users():
# hack hack. # hack hack.