From d6432afdad67eedf7baf6aa6454abcd7198446ce Mon Sep 17 00:00:00 2001 From: sauls8t Date: Tue, 25 Jun 2019 16:52:31 +0100 Subject: [PATCH] Sort labels by name DB layer sorts, UI just receives and displays as-is. --- domain/label/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/label/store.go b/domain/label/store.go index c659a631..21fe53f0 100644 --- a/domain/label/store.go +++ b/domain/label/store.go @@ -51,7 +51,7 @@ func (s Store) Get(ctx domain.RequestContext) (l []label.Label, err error) { c_name AS name, c_color AS color, c_created AS created, c_revised AS revised FROM dmz_space_label - WHERE c_orgid=?`), + WHERE c_orgid=? ORDER BY c_name`), ctx.OrgID) if err == sql.ErrNoRows {