mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 15:53:07 -05:00
Use named const instead of a raw string (#5115)
This commit is contained in:
parent
971dccda16
commit
cabdf84f1f
1 changed files with 1 additions and 1 deletions
|
@ -1380,7 +1380,7 @@ func SearchUsers(opts *SearchUserOptions) (users []*User, _ int64, _ error) {
|
|||
opts.Page = 1
|
||||
}
|
||||
if len(opts.OrderBy) == 0 {
|
||||
opts.OrderBy = "name ASC"
|
||||
opts.OrderBy = SearchOrderByAlphabetically
|
||||
}
|
||||
|
||||
users = make([]*User, 0, opts.PageSize)
|
||||
|
|
Loading…
Reference in a new issue