Title: Add Default Sorting Per Column
Last modified: December 24, 2017

---

# Add Default Sorting Per Column

 *  [brian.stinar](https://wordpress.org/support/users/brianstinar/)
 * (@brianstinar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/add-default-sorting-per-column/)
 * Your plugin is cool. Maybe I will add this feature myself, or have my team do
   it. I wanted to submit this request so I don’t forget about it.
 * I would like the ability to add a column’s default sort in the shortcode. It 
   is clear what should happen when a single column is specified as sort. That column
   should be sorted.
 * It is less clear as to what happens when multiple columns would be specified 
   as sort. It looks like dataTables supports multiple sorts – [https://datatables.net/examples/basic_init/multi_col_sort.html](https://datatables.net/examples/basic_init/multi_col_sort.html).
   I’m not sure I understand their example, but I think they’d support first column
   sort, then progress sorting through the next sorts. I would do this in a left-
   to-right parsing of arguments to the shortcode, or a sortBy parameter which is
   a list of arguments to sort by.
 * For my purposes, first column sort is all I need. I’m simulating this through
   jQuery clicking on the column I want sorted by. This is sort of ghetto though.
 * Thanks again for writing this. It’s simple and easy to use. It’s helping one 
   of my customers display CSV data inside their page.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-default-sorting-per-column%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [anjanasilva](https://wordpress.org/support/users/anjanasilva/)
 * (@anjanasilva)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/add-default-sorting-per-column/#post-9817303)
 * Hello [@brianstinar](https://wordpress.org/support/users/brianstinar/),
 * Firstly, I would like to thank you for your feedback.
 * This is indeed a cool feature to have. I will consider this in the next update.
 * Thank you very much,
    Anjana

Viewing 1 replies (of 1 total)

The topic ‘Add Default Sorting Per Column’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/aj-csv-to-datatable.svg)
 * [AJ CSV to DataTable](https://wordpress.org/plugins/aj-csv-to-datatable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aj-csv-to-datatable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aj-csv-to-datatable/)
 * [Active Topics](https://wordpress.org/support/plugin/aj-csv-to-datatable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aj-csv-to-datatable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aj-csv-to-datatable/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [anjanasilva](https://wordpress.org/support/users/anjanasilva/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/add-default-sorting-per-column/#post-9817303)
 * Status: not resolved