Datatable icon indicating copy to clipboard operation
Datatable copied to clipboard

Order on multiple columns

Open silwerclaw opened this issue 10 years ago • 5 comments

Does this wrapper support ordering by multiple columns? Cause i have a feeling that no. And if yes, do i need to add smth on serverside?

I have this code that must sort by default on two columns in the same time on frontend "order": [ [2, 'asc'], [1, 'asc'] ],

silwerclaw avatar Jun 23 '14 11:06 silwerclaw

the master branch should support ordering on multiple columns, see this PR for infos: https://github.com/Chumper/Datatable/pull/109

Chumper avatar Jun 23 '14 13:06 Chumper

I saw this - but those commit adds support for front-end ordering - but in backend i see that order columns sliced only to first one by function handleiSortCol_0. What about order columns like iSortCol_1, iSortCol_2 ?

silwerclaw avatar Jun 23 '14 13:06 silwerclaw

They are currently not supported. However it should be an easy task to implement it for multiple columns.

Chumper avatar Jun 23 '14 15:06 Chumper

I'd love this feature. Is there any update or workaround about this?

oinegue avatar Sep 05 '14 10:09 oinegue

No, atm not, i havent had time to implement this. I cant promise anything but i will lokk into it right now

Chumper avatar Sep 15 '14 17:09 Chumper