Title: URL sorting
Last modified: May 12, 2022

---

# URL sorting

 *  Resolved [gomax](https://wordpress.org/support/users/gomax/)
 * (@gomax)
 * [4 years ago](https://wordpress.org/support/topic/url-sorting/)
 * Hi,
 * I have a column contain a URL “book_title_with_link_to_post”. I enabled the sorting
   for this column and the URL shows at the front end table as:
 * [First Book](http://example.com/?post_type=book&p=xxxxx)
    [Second Book](http://example.com/?post_type=book&p=xxxxx)
   [Third Book](http://example.com/?post_type=book&p=xxxxx)
 * It looks like the sorting is based on the postID by default. Is there a way I
   can make the sorting based on the Book name?
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [4 years ago](https://wordpress.org/support/topic/url-sorting/#post-15638898)
 * Hello there.
 * At the moment there’s no logic included to make it sort based on the name of 
   the post (book), so it uses the ID by default.
 * A custom logic would have to be implemented here in order to achieve it, but 
   please note that custom work doesn’t fall under included support for the plugin.
 * Kind regards.

Viewing 1 replies (of 1 total)

The topic ‘URL sorting’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/url-sorting/#post-15638898)
 * Status: resolved