UX: sort staff members by username

This commit is contained in:
Régis Hanol 2015-06-15 18:53:53 +02:00
parent 87ab1cef8e
commit 81290d7f18
1 changed files with 2 additions and 0 deletions

View File

@ -27,11 +27,13 @@ class About
def moderators
@moderators ||= User.where(moderator: true, admin: false)
.where.not(id: Discourse::SYSTEM_USER_ID)
.order(:username_lower)
end
def admins
@admins ||= User.where(admin: true)
.where.not(id: Discourse::SYSTEM_USER_ID)
.order(:username_lower)
end
def stats