Blanks sort inconsistently in an integer column
Blanks sort inconsistently in an integer column

In the following code, when sorting on the Age column, note that the blank (Alex's age) appears between 1 and 0 when descending, and between 0 and -1 when ascending.
Shouldn't the sorting be consistent (i.e. always between 0 and 1 or 0 and -1) regardless of ascending or descending.
[code]
$(function() {
$('#sortableTableDT').dataTable({});
});
Name
Age
Bob
5
Alex
Frank
-1
Zed
0
Duncan
1
[/code]
Sort on engine version in this dataTables live example (which uses - instead of )
http://live.datatables.net/inuziv/2
Shouldn't the sorting be consistent (i.e. always between 0 and 1 or 0 and -1) regardless of ascending or descending.
[code]
$(function() {
$('#sortableTableDT').dataTable({});
});
Name
Age
Bob
5
Alex
Frank
-1
Zed
0
Duncan
1
[/code]
Sort on engine version in this dataTables live example (which uses - instead of )
http://live.datatables.net/inuziv/2
This discussion has been closed.
Replies
Fix is committed here: https://github.com/DataTables/DataTables/commit/3ac3cedf535b5ee2fc5f6179ed50143878f6cc31 .
Thanks for flagging this up!
Allan