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.
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 deserializesorts
server-side than look for each column assorts[TIME]
or have it come through as just a string likesorts=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! :)