Context
Found in team:engine release testing, 2026-10-20. A read-only headless sweep reproduced it 2/2 in four examples, and I reproduced it directly in examples/grid/animatedRowSorting (headless Chrome, dev server). The steps: type a in the Firstname field (7 rows, insertion order), then click the Firstname header, which sorts them ascending. Refining the field to am then gives Sam, William, Amanda instead of Amanda, Sam, William. Clearing the field brings back insertion order. Through all of it the header keeps its ascending arrow and store.sorters is unchanged.
The sweep saw the same in examples/grid/issues (search, sort Opened, refine the search), examples/tableFiltering and examples/grid/contentSizedRows. 13.3's header menus and search make this path routine: sort a column, then narrow by menu or search.
The Problem
Once a filter is active, every later filter change returns the rows in the order they had when the collection was first filtered, not in sorter order. A filter whose value is null still counts as active, so clearing a field does not restore the sort either.
The Architectural Reality
src/collection/Base.mjs#filter: the branch for no active filters re-applies the sorters (needsSorting = true → me.doSort(me.items, true)). The branch for active filters rebuilds _items from evaluateFilters() and does not.
evaluateFilters() walks this.allItems?._items. allItems is created from _items on the first filter, and doSort() sorts only _items, so allItems keeps its creation-time order from then on.
- 13.2.0 has the same
filter() shape (it also iterates allItems._items), so this is not a 13.3 regression.
- Design authority:
filter() itself, which re-applies the sorters on its no-filter branch. That makes "the filtered items follow the sorters" the method's own contract, and the active-filter branch breaks it. Also the Collections guide's Sorting Data: "Neo.collection.Sorter instances are used to sort the items within a collection."
The Fix
In filter(), re-apply the active sorters after either branch, whenever the collection has sorters. Keep remote sorting and filterMode: 'primitive' behaving as they do today.
Acceptance Criteria
Out of Scope
- Keeping
allItems itself in sorter order. Re-sorting the filtered result is enough here.
- Remote sorting and filtering.
Related
- #19669 / #19673 (the column filters that use
evaluateFilters), and the 13.3 header-menu and search chapters (#19712).
Live latest-open sweep: checked the latest open issues at 2026-10-20T11:21Z, plus open-issue searches for "filter sort order lost", "sort after filter" and "refilter sorted": no equivalent. MC sweep: no prior decision. Own-assignment sweep: none overlapping.
Origin Session ID: ad84dc14-8baf-4f95-a7dd-a9e224f51c31
Retrieval Hint: "collection filter evaluateFilters allItems drops sort order"
Context
Found in team:engine release testing, 2026-10-20. A read-only headless sweep reproduced it 2/2 in four examples, and I reproduced it directly in
examples/grid/animatedRowSorting(headless Chrome, dev server). The steps: typeain the Firstname field (7 rows, insertion order), then click the Firstname header, which sorts them ascending. Refining the field toamthen gives Sam, William, Amanda instead of Amanda, Sam, William. Clearing the field brings back insertion order. Through all of it the header keeps its ascending arrow andstore.sortersis unchanged.The sweep saw the same in
examples/grid/issues(search, sort Opened, refine the search),examples/tableFilteringandexamples/grid/contentSizedRows. 13.3's header menus and search make this path routine: sort a column, then narrow by menu or search.The Problem
Once a filter is active, every later filter change returns the rows in the order they had when the collection was first filtered, not in sorter order. A filter whose value is
nullstill counts as active, so clearing a field does not restore the sort either.The Architectural Reality
src/collection/Base.mjs#filter: the branch for no active filters re-applies the sorters (needsSorting = true→me.doSort(me.items, true)). The branch for active filters rebuilds_itemsfromevaluateFilters()and does not.evaluateFilters()walksthis.allItems?._items.allItemsis created from_itemson the first filter, anddoSort()sorts only_items, soallItemskeeps its creation-time order from then on.filter()shape (it also iteratesallItems._items), so this is not a 13.3 regression.filter()itself, which re-applies the sorters on its no-filter branch. That makes "the filtered items follow the sorters" the method's own contract, and the active-filter branch breaks it. Also the Collections guide's Sorting Data: "Neo.collection.Sorterinstances are used to sort the items within a collection."The Fix
In
filter(), re-apply the active sorters after either branch, whenever the collection has sorters. Keep remote sorting andfilterMode: 'primitive'behaving as they do today.Acceptance Criteria
null.examples/grid/animatedRowSorting, filtera, sort Firstname, refine toam: the rows read Amanda, Sam, William. The case fails ondevand passes with the fix.Out of Scope
allItemsitself in sorter order. Re-sorting the filtered result is enough here.Related
evaluateFilters), and the 13.3 header-menu and search chapters (#19712).Live latest-open sweep: checked the latest open issues at 2026-10-20T11:21Z, plus open-issue searches for "filter sort order lost", "sort after filter" and "refilter sorted": no equivalent. MC sweep: no prior decision. Own-assignment sweep: none overlapping.
Origin Session ID: ad84dc14-8baf-4f95-a7dd-a9e224f51c31 Retrieval Hint: "collection filter evaluateFilters allItems drops sort order"