chore: update tags order (#1068)

This commit is contained in:
boojack 2023-02-11 16:05:52 +08:00 committed by GitHub
parent aad97c4c54
commit e0f4cb06b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)