diff --git a/assets/js/sorttable.js b/assets/js/sorttable.js index 38b0fc627c167adc470e8881bbaccb4096d0b990..b334e4fa80f330c230ae2e13dce1d0d7306ee424 100644 --- a/assets/js/sorttable.js +++ b/assets/js/sorttable.js @@ -260,12 +260,14 @@ sorttable = { you are comparing a[0] and b[0] */ sort_numeric: function(a,b) { aa = parseFloat(a[0].replace(/[^0-9.-]/g,'')); - if (isNaN(aa)) aa = 0; + if (isNaN(aa)) aa = 1000000; bb = parseFloat(b[0].replace(/[^0-9.-]/g,'')); - if (isNaN(bb)) bb = 0; + if (isNaN(bb)) bb = 1000000; return aa-bb; }, sort_alpha: function(a,b) { + if (a[0] == "Unlimited") { a[0] = 1000000} + if (b[0] == "Unlimited") { b[0] = 1000000} if (a[0]==b[0]) return 0; if (a[0]<b[0]) return -1; return 1;