▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule dataView.module·originates fromworld 07158574-5…
view
Pure view computation for `Z.dataView` — filter then sort an item array into an ordered list of 1-based indices.
by·posted 2mo ago
What it does
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.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.