MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / getSortValue

Function getSortValue

packages/core/src/widgets/useTable.ts:57–60  ·  view source on GitHub ↗
(row: T, key: string)

Source from the content-addressed store, hash-verified

55}
56
57function getSortValue<T>(row: T, key: string): unknown {
58 const record = row as RecordLike;
59 return record[key];
60}
61
62function compareSortValues(a: unknown, b: unknown): number {
63 if (a === b) return 0;

Callers 1

sortRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected