diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2018-10-20 04:25:38 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-10-20 10:25:38 +0800 |
commit | cabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87 (patch) | |
tree | 5c3a4d558e54932535b50c6c9eac5c9333466377 /models | |
parent | 971dccda16f9541a4b38d3404e0b3e8e7b270490 (diff) | |
download | gitea-cabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87.tar.gz gitea-cabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87.zip |
Use named const instead of a raw string (#5115)
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 45bd4445ee..32e7dda2cb 100644 --- a/models/user.go +++ b/models/user.go @@ -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) |