class Admin::UsersController < AdminController
  def index
    if @team.present?
      @users = @team.users
    else
      @users = User.all.page(params[:page]).per(50).decorate
    end
  end
end

class Admin::UsersController < AdminController
  def index
    if @team.present?
      @users = @team.users
    else
      @users = User.all
                   .order(:full_name)
                   .page(params[:page]).per(100)
                   .decorate
    end
  end
end

Order admin users page by name
Order admin users page by name
