(row: HTMLTableRowElement, index: number)
| 541 | // Sorting |
| 542 | //////////////////// |
| 543 | function getCellSortValue(row: HTMLTableRowElement, index: number) { |
| 544 | const cell = row.cells[index]; |
| 545 | return cell?.getAttribute("data-sort") ?? cell?.textContent?.trim() ?? ""; |
| 546 | } |
| 547 | |
| 548 | function compareValues(a: string, b: string, type: string | null) { |
| 549 | if (a === "" && b === "") return 0; |