mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-22 16:24:41 -04:00
Fix bstables sorting (#2159)
This commit is contained in:
1 parent
a268c0a48d
commit
ddcece66d6
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user