You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ok, I found the code sort_numeric: function(a,b) { var aa = parseFloat(a[0].replace(/[^\-\d.]/g,'')) || 0; var bb = parseFloat(b[0].replace(/[^\-\d.]/g,'')) || 0; return aa - bb; },
and change it to: sort_numeric: function(a,b) { var aa = parseFloat(a[0].replace(/[^\-\d.]/g,'')) || 0; var bb = parseFloat(b[0].replace(/[^\-\d.]/g,'')) || 0; return bb - aa; },
(changed the aa, bb comparison)
It'll be better to have a option or something like that not to hack the code ;) But that is not all, indeed, the arrow shows previous direction, which corresponds to the overall default sorting direction... What a fun :)
update:
here is how it works for me
I changed the arrows on row 24: ARROWS: /MSIE [5-8]\.\d/.test(navigator.userAgent) ? [' <font face="webdings">5</font>',' <font face="webdings">6</font>'] : [' ▾',' ▴'],
plus reversed the default sorting logic on row 286: if (!inverse) sortle.val.reverse();
hello
how can I reverse the initial order from ASC to DESC?
The original documentation says:
but that is no longer the case, as the code went thru refactoring ;)
thx
The text was updated successfully, but these errors were encountered: