Forráskód Böngészése

auto update script executed

Toby Chui 1 éve
szülő
commit
85383ab2c4
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      web/script/tablesort.js

+ 4 - 0
web/script/tablesort.js

@@ -107,6 +107,10 @@
 		asc: 'sorted ascending',
 		desc: 'sorted descending',
 		compare: function(a, b) {
+			if (a.isInteger() && b.isInteger()){
+				a = parseInt(a);
+				b = parseInt(b);
+			}
 			if (a > b) {
 				return 1;
 			} else if (a < b) {