Преглед на файлове

auto update script executed

Toby Chui преди 1 година
родител
ревизия
85383ab2c4
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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) {