diff --git a/sorting/datetime-moment.js b/sorting/datetime-moment.js index 0bb713b..35af232 100644 --- a/sorting/datetime-moment.js +++ b/sorting/datetime-moment.js @@ -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 ); }; };