From 94b2676ea29c8de2c6aa2f06c5676d7b00d922c2 Mon Sep 17 00:00:00 2001 From: Bryan Bonvallet Date: Fri, 20 Dec 2013 16:25:25 -0500 Subject: [PATCH] Default sort is ascending, want descending sort here. --- karmaworld/apps/courses/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1