From 9c6892bd888f81eed83dbaee512766556cab8000 Mon Sep 17 00:00:00 2001 From: elraphty Date: Wed, 3 Jul 2024 11:07:48 +0100 Subject: [PATCH] addded order ASC for admin workspaces --- db/workspaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/workspaces.go b/db/workspaces.go index 208f1efd6..8e3f1ea92 100644 --- a/db/workspaces.go +++ b/db/workspaces.go @@ -20,7 +20,7 @@ func (db database) GetWorkspaces(r *http.Request) []Workspace { query.Offset(offset).Limit(limit).Order(sortBy + " " + direction + " ") } - query.Find(&ms) + query.Order("name ASC").Find(&ms) return ms }