MCPcopy Create free account
hub / github.com/MADEVAL/Oat-Table / #compare

Method #compare

src/table.js:170–176  ·  view source on GitHub ↗
(first, second)

Source from the content-addressed store, hash-verified

168 }
169
170 #compare(first, second) {
171 if (typeof first === 'number' && typeof second === 'number') {
172 return first - second;
173 }
174
175 return String(first).localeCompare(String(second), undefined, { numeric: true, sensitivity: 'base' });
176 }
177
178 #applyFilter(emit = true) {
179 const query = (this.#filter?.value || '').trim().toLocaleLowerCase();

Callers 1

#sortByMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected