Expand description
Result sorting with selection preservation across sort modes.
Implements cache-based O(n) reordering for sort mode switching between cacheable modes.
BestMatches mode is query-dependent and always performs full O(n log n) sort.
Functionsยง
- invalidate_
sort_ caches - What: Invalidate all sort caches.
- sort_
results_ preserve_ selection - What: Apply the currently selected sorting mode to
app.resultsin-place.