From 5605700fa979626aea2e2030ef4f4427924b027d Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 22 Dec 2016 14:46:20 +0800 Subject: [PATCH] UX: Sort groups by name. --- app/controllers/groups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 28c454be0e0..caaea34442c 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -18,7 +18,7 @@ class GroupsController < ApplicationController page_size = 30 page = params[:page]&.to_i || 0 - groups = Group.order(user_count: :desc, name: :asc).where(visible: true) + groups = Group.order(name: :asc).where(visible: true) if !guardian.is_admin? groups = groups.where(automatic: false)