From baf1ab3435759aeeb89c2d27d931a0b8d14ba87a Mon Sep 17 00:00:00 2001 From: Rasmey SARETH Date: Sun, 8 Feb 2015 01:11:11 +0100 Subject: [PATCH] FIX: Considering the milliseconds for ordering --- sorting/datetime-moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }; };