Hi,
im trying to add datatables to the table on http://www.kickwelt.de/infos.phtml?cat=1&d1=7&d3=2
The last three columns have a specific numeric format (dots as thousand seperators and commas as decimal seperatos). To sort them i used the "Commas for decimal place"-sorting plugin and modified it to replace all dots with "":
But when im trying to sort this columns, it does nothing.
Here is the link to the debugger:
http://debug.datatables.net/oretew
If im getting it right the type "numeric-comma" doesnt exist, does it?
How can i fix this?
im trying to add datatables to the table on http://www.kickwelt.de/infos.phtml?cat=1&d1=7&d3=2
The last three columns have a specific numeric format (dots as thousand seperators and commas as decimal seperatos). To sort them i used the "Commas for decimal place"-sorting plugin and modified it to replace all dots with "":
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"numeric-comma-pre": function ( a ) {
var x = (a == "-") ? 0 : (a.replace( /./g, "" )).replace( /,/, "." );
return parseFloat( x );
},
"numeric-comma-asc": function ( a, b ) {
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
},
"numeric-comma-desc": function ( a, b ) {
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
}
} );]
But when im trying to sort this columns, it does nothing.
Here is the link to the debugger:
http://debug.datatables.net/oretew
If im getting it right the type "numeric-comma" doesnt exist, does it?
How can i fix this?