Permalink
Browse files

Order archives fetched from db by date

  • Loading branch information...
1 parent 4529231 commit 4e71e37b6751123865ccd6f9314b4ee9236915e2 @meldra committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 brain/views.py
View
2 brain/views.py
@@ -344,7 +344,7 @@ def singleday(year, month, day):
if mboxquerycount < 1:
mboxlist = mbox(d, dayname)
else:
- mboxquery = Archive.objects.filter(date__contains=d)
+ mboxquery = Archive.objects.filter(date__contains=d).order_by('date')
jsondata = serializers.serialize('json', mboxquery)
rows = simplejson.loads(jsondata)
mboxlist = []

0 comments on commit 4e71e37

Please sign in to comment.