Title: Sorting numerically
Last modified: August 24, 2016

---

# Sorting numerically

 *  Resolved [Max Beta](https://wordpress.org/support/users/max-beta/)
 * (@max-beta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sorting-numerically-1/)
 * Hi
 * I’m trying to find a way to sort some columns numerically.
    Is this possible 
   with the new shortcodes in the latest update?
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

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

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sorting-numerically-1/#post-6036890)
 * Numeric [sorting](http://datatables.net/plug-ins/sorting/#Type-based-sorting)
   is built-in to DataTables:
 * > The main DataTables package includes sorting functions for strings, dates, 
   > numeric and currency data
 * If DataTables can [detect](http://datatables.net/plug-ins/type-detection/) a 
   numeric column, there’s nothing you need to do to enable numeric sorting.
 * If a column isn’t sorting as you’d expect, double check your column data to ensure
   it is uniformly of the correct type. (Don’t let a letter sneak into a numeric
   column, and so on.)
 *  Thread Starter [Max Beta](https://wordpress.org/support/users/max-beta/)
 * (@max-beta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sorting-numerically-1/#post-6036927)
 * Ok, should that also work with negative values?
 * I saw that when I change cells to numeric format in Google they get a longer 
   minus dash and that’s when the sorting stopped working.
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sorting-numerically-1/#post-6036928)
 * I believe so. Either way, the client-side sort features are a part of the DataTables
   library, not the WordPress plugin itself. Your solution will be found there.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/sorting-numerically-1/#post-6036928)
 * Status: resolved