From 5fe93e048c3f529c80d2d1adb1e49eafebc1af3c Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 12 Oct 2024 00:26:17 +0200 Subject: Sort categories on loading --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 29c85da..05ee948 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func recurPage() http.HandlerFunc { func categoriesPage() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { uid := userId(r) - cats, _ := Q.GetCategories(r.Context(), uid) + cats, _ := Q.GetCategoriesOrdered(r.Context(), uid) showTemplate(w, "categories", cats) } } -- cgit v1.2.3-70-g09d2