Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Sorting the User Management list? #1280

Open
dabockster opened this issue Aug 15, 2017 · 1 comment
Open

Sorting the User Management list? #1280

dabockster opened this issue Aug 15, 2017 · 1 comment

Comments

@dabockster
Copy link

Hey all,

Is there built in functionality to sort the User Management list by username? Or will I have to write my own sort for this?

@silverark
Copy link
Contributor

Are you talking about the user management in the admin area? Copy the Users module into your modules folder, then looking on controllers/settings.php.

Somewhere in the index.php, before the find_all just add

$this->user_model->order_by('username', 'asc');

You can add a Select on the form if you want so you can change what it orders by on the fly. I usually add a ajax search in that module for all my projects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants