Preserve "asSorting" ordering
Preserve "asSorting" ordering
Hello,
I have such configuration:
[code]"aoColumnDefs": [
{ "asSorting": [ "asc", "desc" ], "aTargets": [ 0 ] },
{ "bSortable": false, "aTargets": [ 1 ] },
{ "asSorting": [ "desc", "asc" ], "aTargets": [ 2 ] }
][/code]
In "column 2" I have a lot of equal values.
If I sort "column 2" the script sorts the equal values by "column 0".
That's fine.
But if sorting of "column 2" is DESC, sorting of "column 0" is also DESC etc.
Is it possible if there are equal values in "column 2",
to sort by "column 0", but always ASC?
Here is my example, click on "column 2":
http://www.maquett.com/_temp/datatables/test-01.html
Thank you
I have such configuration:
[code]"aoColumnDefs": [
{ "asSorting": [ "asc", "desc" ], "aTargets": [ 0 ] },
{ "bSortable": false, "aTargets": [ 1 ] },
{ "asSorting": [ "desc", "asc" ], "aTargets": [ 2 ] }
][/code]
In "column 2" I have a lot of equal values.
If I sort "column 2" the script sorts the equal values by "column 0".
That's fine.
But if sorting of "column 2" is DESC, sorting of "column 0" is also DESC etc.
Is it possible if there are equal values in "column 2",
to sort by "column 0", but always ASC?
Here is my example, click on "column 2":
http://www.maquett.com/_temp/datatables/test-01.html
Thank you
This discussion has been closed.
Replies
Allan