From a665b699684fe6ebea9603a9b2d9cdac4eb6312e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 5 Mar 2012 14:26:17 +0100 Subject: [PATCH] Sort listing --- trans/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans/views.py b/trans/views.py index 9dfa162dc..c1b6900b3 100644 --- a/trans/views.py +++ b/trans/views.py @@ -24,7 +24,7 @@ def home(request): if request.user.is_authenticated(): profile = request.user.get_profile() - usertranslations = Translation.objects.filter(language__in = profile.languages.all()) + usertranslations = Translation.objects.filter(language__in = profile.languages.all()).order_by('subproject__project__name', 'subproject__name') top_translations = Profile.objects.order_by('-translated')[:10] top_suggestions = Profile.objects.order_by('-suggested')[:10]