Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
faustogabiou

Sort terms naturally (alphanumerically)

Hello!

Wordpress has a limitation when sorting terms that has letters and numbers. For example:

Item 1
Item 2
Item 3
Item 10
Item 11
Item 100

Above is the desired order, called naturally or alphanumerically. But when sorted by name in WordPress, it returns:

Item 1
Item 10
Item 100
Item 11
Item 2
Item 3

There is a tutorial explaining how to change this: https://objectiv.co/sorting-wordpress-taxonomy-terms-naturally-alphanumerically/

But it is only for frontend. Does Admin Column has a way to do this on edit-tags.php?

Thanks!

2 years, 9 months ago
Stefan van den Dungen Gronovius
Developer

There is no way to sort the term list natural as you mentioned.
Your example work but only in PHP, not in SQL.
Our plugin sorts all items in SQL and not in PHP because that could really to performance issues on large datasets.

2 years, 9 months ago

You must be logged in to reply to this topic.