Fix API plugin: `order.neutral()` didn't fully restore the order correctly

pull/183/head
Allan Jardine 10 years ago
parent be28df9f75
commit d1ba8bde45

@ -20,7 +20,11 @@
$.fn.dataTable.Api.register( 'order.neutral()', function () {
return this.iterator( 'table', function ( s ) {
s.aaSorting.length = 0;
s.aiDisplay.sort();
s.aiDisplayMaster.sort();
s.aiDisplay.sort( function (a,b) {
return a-b;
} );
s.aiDisplayMaster.sort( function (a,b) {
return a-b;
} );
} );
} );

Loading…
Cancel
Save