From d1d839f6234e19f849995d0e539b9f809ecf61b5 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 5 Apr 2014 09:12:10 +0100 Subject: [PATCH] Sorting: formatted numbers - add note about default value --- sorting/formatted-numbers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sorting/formatted-numbers.js b/sorting/formatted-numbers.js index 3fabb88..86f218d 100644 --- a/sorting/formatted-numbers.js +++ b/sorting/formatted-numbers.js @@ -2,6 +2,10 @@ * This plug-in will provide numeric sorting for numeric columns which have * extra formatting, such as thousands separators, currency symbols or any other * non-numeric data. + * + * By default when a cell is found to have no numeric data its value is sorted + * numerically as if its value were 0. This could also be altered to be Inifnity + * or -Infinity as required. * * DataTables 1.10+ has formatted number detection and sorting abilities built- * in. As such this plug-in is marked as deprecated, but might be useful when