Sort contest by relevance

This commit is contained in:
cuom1999 2023-10-14 15:04:11 -05:00
parent 36e505952c
commit edb0bf30d8

View file

@ -236,6 +236,7 @@ class ContestList(
active.append(participation)
present.remove(participation.contest)
if not ("contest" in self.request.GET and settings.ENABLE_FTS):
active.sort(key=attrgetter("end_time", "key"))
present.sort(key=attrgetter("end_time", "key"))
future.sort(key=attrgetter("start_time"))