Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update tags order (#1068)

boojacke0f4cb06b3d8
diff --git a/store/tag.go b/store/tag.go
index 2f8fd09d8..ff40f61e4 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)