浏览代码

This should sort better

Piotr Czajkowski 4 年之前
父节点
当前提交
08d30f3be4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      static/processResults.js

+ 1 - 1
static/processResults.js

@@ -51,7 +51,7 @@ app.sortTable = function() {
 	// borrowed from https://stackoverflow.com/a/49041392/7342859
 	document.querySelectorAll('th').forEach(th => th.addEventListener('click', (() => {
 		const table = document.getElementById("dataRows");
-		Array.from(table.querySelectorAll('tr:nth-child(n+2)'))
+		Array.from(table.querySelectorAll('tr'))
 			.sort(app.comparer(Array.from(th.parentNode.children).indexOf(th), this.asc = !this.asc))
 			.forEach(tr => table.appendChild(tr) );