From ddcece66d61328a6b6b2535152d02a0e99ac6739 Mon Sep 17 00:00:00 2001 From: jekkos Date: Sat, 13 Oct 2018 14:10:12 +0200 Subject: [PATCH] Fix bstables sorting (#2159) --- public/js/manage_tables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/manage_tables.js b/public/js/manage_tables.js index a5c5a8738..a6f5daf0b 100644 --- a/public/js/manage_tables.js +++ b/public/js/manage_tables.js @@ -383,7 +383,7 @@ })(window.form_support = window.form_support || {}, jQuery); function number_sorter(a, b) { - a = +a.replace(/[^\-0-9\.]+/g, ''); - b = +b.replace(/[^\-0-9\.]+/g, ''); + a = +a.replace(/[^\-0-9]+/g, ''); + b = +b.replace(/[^\-0-9]+/g, ''); return a - b; }