From 81290d7f180d84f7c198dc799dfbc80b0236d205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 15 Jun 2015 18:53:53 +0200 Subject: [PATCH] UX: sort staff members by username --- app/models/about.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/about.rb b/app/models/about.rb index dedf9a0ea78..34fb8eadf12 100644 --- a/app/models/about.rb +++ b/app/models/about.rb @@ -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