Skip to content

Commit

Permalink
Use named const instead of a raw string (#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored and lunny committed Oct 20, 2018
1 parent 971dccd commit cabdf84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cabdf84

Please sign in to comment.