소스 검색

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