FIX: Considering the milliseconds for ordering

pull/157/head
Rasmey SARETH 10 years ago
parent a6391794be
commit baf1ab3435

@ -41,7 +41,7 @@ $.fn.dataTable.moment = function ( format, locale ) {
types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
return d === '' || d === null ?
-Infinity :
moment( d, format, locale, true ).unix();
parseInt( moment( d, format, locale, true ).format( 'x' ), 10 );
};
};

Loading…
Cancel
Save