```ruby
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
```

Order admin users page by name
user
```ruby
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
```
assistant