MCPcopy Create free account
hub / github.com/anomalyco/models.dev / getCellSortValue

Function getCellSortValue

packages/web/src/index.ts:543–546  ·  view source on GitHub ↗
(row: HTMLTableRowElement, index: number)

Source from the content-addressed store, hash-verified

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

Callers 1

sortTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected