A little bit more cleanup....
This commit is contained in:
parent
9eb32f4dd1
commit
85d959b953
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user