Title: Sorting Function
Last modified: November 7, 2016

---

# Sorting Function

 *  Resolved [spforummuc](https://wordpress.org/support/users/spforummuc/)
 * (@spforummuc)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/)
 * Hi,
 * is in TablePress the possibility to sort the dates?
 * Have a look, here is our table:
 * [http://www.sp-unternehmerforum.de/seminar-termine](http://www.sp-unternehmerforum.de/seminar-termine)
 * We want to give customers the possibility to easy sort the dates.
 * Best regards
 * Elke Wöhry

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/#post-8405260)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Yes, this is possible, but only if the dates are the only content in the cells.
   Otherwise, the sorting script simply doesn’t recognize the format.
 * In your table, the best solution should be to add an extra column that contains
   just the dates (preferably even in the mm/dd/yyyy format), but that is then hidden.
   
   You should therefore take a look at the approach from [https://wordpress.org/support/topic/sorting-table-by-image?replies=14](https://wordpress.org/support/topic/sorting-table-by-image?replies=14)
 * Regards,
    Tobias
 *  Thread Starter [spforummuc](https://wordpress.org/support/users/spforummuc/)
 * (@spforummuc)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/#post-8405399)
 * Hi Tobias,
 * is it possible to sort it by all of the columns or just by dates?
 * Regards
    Elke
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/#post-8405405)
 * Hi,
 * you can sort by all columns. The default data type is string (i.e. text).
 * Regards,
    Tobias
 *  Thread Starter [spforummuc](https://wordpress.org/support/users/spforummuc/)
 * (@spforummuc)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/#post-8409435)
 * Hi Tobias,
 * maybe you can write me an email (in german) and explain how to solve our problem?
 * We have a few more question. Maybe you can help us.
 * [ew@sp-unternehmerforum.de](https://wordpress.org/support/topic/sorting-function-2/ew@sp-unternehmerforum.de?output_format=md)
 * Regards
    Elke
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/#post-8409466)
 * Hi Elke,
 * I usually prefer these forums for support, but I’ll send you an email.
 * Regards,
    Tobias

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

The topic ‘Sorting Function’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/sorting-function-2/#post-8409466)
 * Status: resolved