alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 363 forks source link

Request: AJAX sorting - stringify the sorts map #222

Open CaitlinWeb opened 8 years ago

CaitlinWeb commented 8 years ago

I'm currently using Dynatable for an AJAX-powered table and having difficulty getting sorting to work because the sorting comes through like sorts[TIME]=1. I would rather deserialize sorts server-side than look for each column as sorts[TIME] or have it come through as just a string like sorts=TIME:1,NAME:0.

It would also possibly be helpful to do it as #105 suggested where descending could be identified by a dash, or (how I would prefer it would be) separating out what is ascending / descending like &sortAsc=NAME&sortDesc=TIME.

Please and thank you! :)