Skip to content

Commit

Permalink
On archive day page, use chronological order
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 16, 2024
1 parent cd533bc commit 726b58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def archive_day(request, year, month, day):
items.extend([{"type": "photoset", "obj": ps} for ps in context["photoset"]])
if count == 0:
raise Http404("No photosets/photos/entries/quotes/links for that day")
items.sort(key=lambda x: x["obj"].created, reverse=True)
items.sort(key=lambda x: x["obj"].created)
context["items"] = items
photos = Photo.objects.filter(
created__year=context["date"].year,
Expand Down

0 comments on commit 726b58d

Please sign in to comment.