瀏覽代碼

auto update script executed

Toby Chui 1 年之前
父節點
當前提交
ee61e82cfa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/script/tablesort.js

+ 1 - 1
web/script/tablesort.js

@@ -107,7 +107,7 @@
 		asc: 'sorted ascending',
 		desc: 'sorted descending',
 		compare: function(a, b) {
-			if (a.isInteger() && b.isInteger()){
+			if (Number.isInteger(a) && Number.isInteger(b)){
 				return a-b;
 			}
 			if (a > b) {