Title: [Plugin: User Community] Sorting profiles on column headers
Last modified: August 19, 2016

---

# [Plugin: User Community] Sorting profiles on column headers

 *  [jaguwar](https://wordpress.org/support/users/jaguwar/)
 * (@jaguwar)
 * [17 years ago](https://wordpress.org/support/topic/plugin-user-community-sorting-profiles-on-column-headers/)
 * Hey is there an easy way to sort on a particular column in the works? In the 
   meantime, I wouldn’t mind finding the query needed to sort on roles. I don’t 
   mean to sound lazy, but if you could tell me which file has the query from which
   the profile pages are made, I’d be grateful for the shortcut! Thanks.

Viewing 1 replies (of 1 total)

 *  [Txanny](https://wordpress.org/support/users/txanny/)
 * (@txanny)
 * [17 years ago](https://wordpress.org/support/topic/plugin-user-community-sorting-profiles-on-column-headers/#post-1097094)
 * The queries for the list are on the profiles.php file, inside the components 
   folder.
 * The getUsersByRoles() method is what orders the list (You can pass the order 
   in an array as a parameter.
 * The pageNavigator() method has the query to order the next/Previous user.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: User Community] Sorting profiles on column headers’ is closed
to new replies.

## Tags

 * [column sort](https://wordpress.org/support/topic-tag/column-sort/)
 * [sort order](https://wordpress.org/support/topic-tag/sort-order/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Txanny](https://wordpress.org/support/users/txanny/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/plugin-user-community-sorting-profiles-on-column-headers/#post-1097094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
