mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Sort labels by name
DB layer sorts, UI just receives and displays as-is.
This commit is contained in:
parent
9c36241b58
commit
d6432afdad
1 changed files with 1 additions and 1 deletions
|
@ -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_name AS name, c_color AS color,
|
||||||
c_created AS created, c_revised AS revised
|
c_created AS created, c_revised AS revised
|
||||||
FROM dmz_space_label
|
FROM dmz_space_label
|
||||||
WHERE c_orgid=?`),
|
WHERE c_orgid=? ORDER BY c_name`),
|
||||||
ctx.OrgID)
|
ctx.OrgID)
|
||||||
|
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue