浏览代码

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) {