mirror of
https://github.com/usememos/memos.git
synced 2025-10-24 05:07:13 +08:00
chore: update tags order (#1068)
This commit is contained in:
parent
aad97c4c54
commit
e0f4cb06b3
1 changed files with 3 additions and 1 deletions
|
|
@ -111,7 +111,9 @@ func findTagList(ctx context.Context, tx *sql.Tx, find *api.TagFind) ([]*tagRaw,
|
||||||
name,
|
name,
|
||||||
creator_id
|
creator_id
|
||||||
FROM tag
|
FROM tag
|
||||||
WHERE ` + strings.Join(where, " AND ")
|
WHERE ` + strings.Join(where, " AND ") + `
|
||||||
|
ORDER BY name ASC
|
||||||
|
`
|
||||||
rows, err := tx.QueryContext(ctx, query, args...)
|
rows, err := tx.QueryContext(ctx, query, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, FormatError(err)
|
return nil, FormatError(err)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue