Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

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 } — spec is { filter?, sortKey?, sortDir?, textOf, valueOf }. Filter is a case-insensitive substring over textOf(item); sort compares valueOf(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_dataview suite.