Title: Sort table by two fields
Last modified: August 31, 2016

---

# Sort table by two fields

 *  [viermush](https://wordpress.org/support/users/viermush/)
 * (@viermush)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/sort-table-by-two-fields/)
 * Hi,
 * I have a Soccer League website and on each team there are **Active** and **Inactive**
   players.
    I want to sort the table to display the Active players first and them
   the Inactive at the bottom of the list but at the same time to the active and
   inactive ones to be ordered **alphabetically**.
 * Is there a way to do this?
 * [https://wordpress.org/plugins/sportspress/](https://wordpress.org/plugins/sportspress/)

The topic ‘Sort table by two fields’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [viermush](https://wordpress.org/support/users/viermush/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/sort-table-by-two-fields/)
 * Status: not resolved