mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Use named const instead of a raw string (#5115)
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user