From 6205de54a4552b4208591e3db77352405f3e0fa3 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 3 Dec 2011 09:56:46 +0000 Subject: [PATCH] Fix numeric sorting pre-formatting method typo, picked up by the unit tests --- media/js/jquery.dataTables.js | 2 +- media/src/ext/ext.sorting.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 950eaff7..7580c0a8 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -10062,7 +10062,7 @@ /* * numerical sorting */ - "numeric-asc": function ( a ) + "numeric-pre": function ( a ) { return (a=="-" || a==="") ? 0 : a*1; }, diff --git a/media/src/ext/ext.sorting.js b/media/src/ext/ext.sorting.js index a8e4baf9..2382dc53 100644 --- a/media/src/ext/ext.sorting.js +++ b/media/src/ext/ext.sorting.js @@ -67,7 +67,7 @@ $.extend( _oExt.oSort, { /* * numerical sorting */ - "numeric-asc": function ( a ) + "numeric-pre": function ( a ) { return (a=="-" || a==="") ? 0 : a*1; },