summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2018-10-20 04:25:38 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2018-10-20 10:25:38 +0800
commitcabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87 (patch)
tree5c3a4d558e54932535b50c6c9eac5c9333466377 /models
parent971dccda16f9541a4b38d3404e0b3e8e7b270490 (diff)
downloadgitea-cabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87.tar.gz
gitea-cabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87.zip
Use named const instead of a raw string (#5115)
Diffstat (limited to 'models')
-rw-r--r--models/user.go2
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)