Title: Sorting URL Columns
Last modified: December 13, 2018

---

# Sorting URL Columns

 *  Resolved [kaydub15](https://wordpress.org/support/users/kaydub15/)
 * (@kaydub15)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/sorting-url-columns/)
 * Columns that have a URL and Text (www.example.com || Text here), when sorted,
   sort by the URL string and not the text field. This isn’t practical. Is there
   a way to sort by the display text instead?
 * I tried editing the class.link.wpdatacolumn.php as per this thread ([https://wordpress.org/support/topic/sorting-url-columns-problem-and-solution/](https://wordpress.org/support/topic/sorting-url-columns-problem-and-solution/)).
 * You can see the issue here in Column A, they sort by the underlying URL so many
   of them are not sorted alphabetically. [https://www.outdoorvancouver.ca/vancouver-hiking-trail-guides/](https://www.outdoorvancouver.ca/vancouver-hiking-trail-guides/)
 * Thanks for any help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsorting-url-columns%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/sorting-url-columns/#post-11026828)
 * Hi,
 * We sincerely apologize for the late reply.
 * We tried to change that line of code from ‘string’ to ‘html’ but, we’re sorry
   to say that it didn’t resolve the issue You are describing.
 * Unfortunately for now sorting URL columns is not possible to achieve because 
   it will start sorting from the start of the link (https or http …).
 * We are looking to implement this feature for our future updates.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#avoid-signatures)]_
    -  This reply was modified 7 years, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

The topic ‘Sorting URL Columns’ 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: [7 years, 5 months ago](https://wordpress.org/support/topic/sorting-url-columns/#post-11026828)
 * Status: resolved