Log inGet started
Package

view.module

Newest version

This package holds more than this page lists. See all of its files in its world.

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.