mirror of
https://github.com/go-gitea/gitea
synced 2025-08-16 22:48:27 +00:00
Backport of #22081 Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
@@ -58,6 +58,10 @@ func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions,
|
||||
orderBy = "`user`.updated_unix ASC"
|
||||
case "reversealphabetically":
|
||||
orderBy = "`user`.name DESC"
|
||||
case "lastlogin":
|
||||
orderBy = "`user`.last_login_unix ASC"
|
||||
case "reverselastlogin":
|
||||
orderBy = "`user`.last_login_unix DESC"
|
||||
case UserSearchDefaultSortType: // "alphabetically"
|
||||
default:
|
||||
orderBy = "`user`.name ASC"
|
||||
|
Reference in New Issue
Block a user