UX: Sort groups by name.

This commit is contained in:
Guo Xiang Tan 2016-12-22 14:46:20 +08:00
parent 6955c39c68
commit 5605700fa9
1 changed files with 1 additions and 1 deletions

View File

@ -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)