From f730fbb803575c9dd7c6ae6e06483239e14b971d Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt Date: Mon, 24 Feb 2025 15:12:02 -0400 Subject: Order notes by start, descending diff --git a/program/views.py b/program/views.py index 6ddeacb..40c73c6 100644 --- a/program/views.py +++ b/program/views.py @@ -381,6 +381,7 @@ def search(request): if types is None or "note" in types: notes = list( Note.objects.filter(title__icontains=q) + .order_by("-start") .select_related("show", "timeslot") .values( "content", -- cgit v0.10.2