Skip to content

Commit cabdf84

Browse files
cristaloleglunny
authored andcommitted
Use named const instead of a raw string (#5115)
1 parent 971dccd commit cabdf84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ func SearchUsers(opts *SearchUserOptions) (users []*User, _ int64, _ error) {
13801380
opts.Page = 1
13811381
}
13821382
if len(opts.OrderBy) == 0 {
1383-
opts.OrderBy = "name ASC"
1383+
opts.OrderBy = SearchOrderByAlphabetically
13841384
}
13851385

13861386
users = make([]*User, 0, opts.PageSize)

0 commit comments

Comments
 (0)