From: Bryan Bonvallet Date: Fri, 20 Dec 2013 21:25:25 +0000 (-0500) Subject: Default sort is ascending, want descending sort here. X-Git-Tag: release-20150131~376^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94b2676ea29c8de2c6aa2f06c5676d7b00d922c2;p=oweals%2Fkarmaworld.git Default sort is ascending, want descending sort here. --- diff --git a/karmaworld/apps/courses/views.py b/karmaworld/apps/courses/views.py index 1bd64ee..6b7cfc6 100644 --- a/karmaworld/apps/courses/views.py +++ b/karmaworld/apps/courses/views.py @@ -83,7 +83,7 @@ class AboutView(TemplateView): def get_context_data(self, **kwargs): """ get the list of schools with the most files for leaderboard """ context = { 'params': kwargs, - 'schools': School.objects.filter(file_count__gt=0).order_by('file_count')[:20] } + 'schools': School.objects.filter(file_count__gt=0).order_by('-file_count')[:20] } return context