Title: Default Sort
Last modified: April 12, 2024

---

# Default Sort

 *  Resolved [patparker100@yahoo.com](https://wordpress.org/support/users/patparker100yahoocom/)
 * (@patparker100yahoocom)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-sort-6/)
 * Some members are executive members and some are general. We would like the executive
   member to appear first on the directory page. Is there a filter that would allow
   me to modify the query to do that. Or is there another way that I am missing?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-sort-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-sort-6/#post-17687496)
 * Hello!
 * You can customize that with the hook and filters in the function here: 
 * [https://github.com/AyeCode/userswp/blob/4f8bb1ba840e50d72db74c39a5718953aab50b7c/includes/helpers/misc.php#L309](https://github.com/AyeCode/userswp/blob/4f8bb1ba840e50d72db74c39a5718953aab50b7c/includes/helpers/misc.php#L309)
 * That is called when listing users.
 *  Thread Starter [patparker100@yahoo.com](https://wordpress.org/support/users/patparker100yahoocom/)
 * (@patparker100yahoocom)
 * [2 years ago](https://wordpress.org/support/topic/default-sort-6/#post-17774314)
 * Hi Alex, What we would really like is to have it sort by membership level and
   then last name ascending within each membership level. How would we do that? 
   Thank you!
 * [Members – LEAP (womenleap.org)](https://womenleap.org/members/)
    -  This reply was modified 2 years ago by [patparker100@yahoo.com](https://wordpress.org/support/users/patparker100yahoocom/).
 *  Plugin Support [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [2 years ago](https://wordpress.org/support/topic/default-sort-6/#post-17774629)
 * This should be possible with nested options. When you add sorting options you
   can nest one under another by dragging the one to be nested under the parent.
 * Use the executive field as the parent, then A-Z as the secondary.
 * Let us know how it goes.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Default Sort’ is closed to new replies.

 * ![](https://ps.w.org/userswp/assets/icon-256x256.png?rev=2784318)
 * [UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP](https://wordpress.org/plugins/userswp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/userswp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/userswp/)
 * [Active Topics](https://wordpress.org/support/plugin/userswp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/userswp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/userswp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/default-sort-6/#post-17774629)
 * Status: resolved