From e0f4cb06b3d8a600f5fd73fd26709b53b799506f Mon Sep 17 00:00:00 2001 From: boojack Date: Sat, 11 Feb 2023 16:05:52 +0800 Subject: [PATCH] chore: update tags order (#1068) --- store/tag.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/store/tag.go b/store/tag.go index 2f8fd09d..ff40f61e 100644 --- a/store/tag.go +++ b/store/tag.go @@ -111,7 +111,9 @@ func findTagList(ctx context.Context, tx *sql.Tx, find *api.TagFind) ([]*tagRaw, name, creator_id FROM tag - WHERE ` + strings.Join(where, " AND ") + WHERE ` + strings.Join(where, " AND ") + ` + ORDER BY name ASC + ` rows, err := tx.QueryContext(ctx, query, args...) if err != nil { return nil, FormatError(err)