|
|
@ -58,6 +58,10 @@ func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions, |
|
|
|
orderBy = "`user`.updated_unix ASC" |
|
|
|
orderBy = "`user`.updated_unix ASC" |
|
|
|
case "reversealphabetically": |
|
|
|
case "reversealphabetically": |
|
|
|
orderBy = "`user`.name DESC" |
|
|
|
orderBy = "`user`.name DESC" |
|
|
|
|
|
|
|
case "lastlogin": |
|
|
|
|
|
|
|
orderBy = "`user`.last_login_unix ASC" |
|
|
|
|
|
|
|
case "reverselastlogin": |
|
|
|
|
|
|
|
orderBy = "`user`.last_login_unix DESC" |
|
|
|
case UserSearchDefaultSortType: // "alphabetically"
|
|
|
|
case UserSearchDefaultSortType: // "alphabetically"
|
|
|
|
default: |
|
|
|
default: |
|
|
|
orderBy = "`user`.name ASC" |
|
|
|
orderBy = "`user`.name ASC" |
|
|
|