mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Sort groups by name.
This commit is contained in:
@@ -18,7 +18,7 @@ class GroupsController < ApplicationController
|
|||||||
page_size = 30
|
page_size = 30
|
||||||
page = params[:page]&.to_i || 0
|
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?
|
if !guardian.is_admin?
|
||||||
groups = groups.where(automatic: false)
|
groups = groups.where(automatic: false)
|
||||||
|
|||||||
Reference in New Issue
Block a user