A little bit more cleanup....

This commit is contained in:
RetiredWizard 2022-08-05 01:42:59 -04:00 committed by GitHub
parent 9eb32f4dd1
commit 85d959b953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,16 +15,9 @@ const sortEvent = new Event('sort');
class SortableTable {
constructor(tableNode) {
this.tableNode = tableNode;
this.columnHeaders = tableNode.querySelectorAll('thead th');
}
setColumnHeaderSort(columnIndex) {
var ch = this.columnHeaders[columnIndex];
this.sortColumn(columnIndex);
}
sortColumn(columnIndex) {
function compareValues(a, b) {
if (a.value === b.value) {
return 0;