mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
UX: sort staff members by username
This commit is contained in:
parent
87ab1cef8e
commit
81290d7f18
@ -27,11 +27,13 @@ class About
|
|||||||
def moderators
|
def moderators
|
||||||
@moderators ||= User.where(moderator: true, admin: false)
|
@moderators ||= User.where(moderator: true, admin: false)
|
||||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||||
|
.order(:username_lower)
|
||||||
end
|
end
|
||||||
|
|
||||||
def admins
|
def admins
|
||||||
@admins ||= User.where(admin: true)
|
@admins ||= User.where(admin: true)
|
||||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||||
|
.order(:username_lower)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stats
|
def stats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user