Skip to content

Commit 2072a62

Browse files
authored
Update views.py (#35)
1 parent 4f36598 commit 2072a62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

website/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def filter(request, category=None, tutorial=None, minute_range=None, second_rang
252252

253253
#context['questions'] = questions.order_by('category', 'tutorial', 'minute_range', 'second_range')
254254
questions = questions.annotate(total_answers=Count('answer'))
255+
questions = questions.order_by('-date_created', 'category', 'tutorial')
255256
raw_get_data = request.GET.get('o', None)
256257

257258
header = {

0 commit comments

Comments
 (0)