MCPcopy Index your code
hub / github.com/simstudioai/sim / sortNamesToIds

Function sortNamesToIds

apps/sim/lib/table/column-keys.ts:168–172  ·  view source on GitHub ↗
(sort: Sort, idByName: ReadonlyMap<string, string>)

Source from the content-addressed store, hash-verified

166
167/** Translates a sort's field names → column ids. Unknown fields pass through. */
168export function sortNamesToIds(sort: Sort, idByName: ReadonlyMap<string, string>): Sort {
169 const out: Sort = {}
170 for (const [field, dir] of Object.entries(sort)) out[idByName.get(field) ?? field] = dir
171 return out
172}
173
174/**
175 * Remaps a stored row keyed by column **id** back to **name** keying for the

Callers 4

executeFunction · 0.90
rowWireTranslatorsFunction · 0.90
route.tsFile · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected