Builtin Library
README.md
dataView.view
Pure view computation for Z.dataView — filter then sort an item array into an
ordered list of 1-based indices.
Exports
M.computeView(items, spec) -> { number }—specis{ filter?, sortKey?, sortDir?, textOf, valueOf }. Filter is a case-insensitive substring overtextOf(item); sort comparesvalueOf(item, sortKey)numerically or case-insensitively, ascending or descending, with a stable tiebreak on the original index.
Notes
- Pure functions, no engine calls — unit-tested in the
editor_dataviewsuite.