MCPcopy Index your code
hub / github.com/microsoft/SandDance / sortKey

Function sortKey

docs/app/js/sanddance-app.js:147109–147111  ·  view source on GitHub ↗
(sort)

Source from the content-addressed store, hash-verified

147107const Ascending = "ascending";
147108const Descending = "descending";
147109function sortKey(sort) {
147110 return !(0, _vegaUtil.isObject)(sort) ? "" : (sort.order === Descending ? "-" : "+") + aggrField(sort.op, sort.field);
147111}
147112function aggrField(op, field3) {
147113 return (op && op.signal ? "$" + op.signal : op || "") + (op && field3 ? "_" : "") + (field3 && field3.signal ? "$" + field3.signal : field3 || "");
147114} // -----

Callers 1

cacheFunction · 0.70

Calls 1

aggrFieldFunction · 0.70

Tested by

no test coverage detected