diff options
-rw-r--r-- | exam/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exam/views.py b/exam/views.py index 61179de..98fe7c7 100644 --- a/exam/views.py +++ b/exam/views.py @@ -285,7 +285,7 @@ def monitor(request, quiz_id=None): papers = QuestionPaper.objects.filter(quiz=quiz, user__profile__isnull=False) - sorted(papers, + papers = sorted(papers, cmp=lambda x, y: cmp(x.get_total_marks(), y.get_total_marks()), reverse=True) |