From 689da931ddeb234512b3d5a44e835bd6788a1f59 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 8 May 2022 14:02:59 +0200 Subject: [PATCH] Order playlists alphabetically in sidebar --- frontend/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/views.py b/frontend/views.py index 4a126ed..421586e 100644 --- a/frontend/views.py +++ b/frontend/views.py @@ -13,7 +13,7 @@ class PlaylistView(ListView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["title"] = "All Videos" - context["playlists"] = Playlist.objects.all() + context["playlists"] = Playlist.objects.all().order_by("title") context["playlist"] = self.get_playlist() return context