From 2305b97297a144aaccf32dde0fdf7321a0b0bec7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Feb 2024 13:14:13 -0400 Subject: data: withSortedList: map sortIndices same as unstableSortIndices Instead of the flipwise direction. --- src/data/composite/data/withSortedList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/composite/data/withSortedList.js b/src/data/composite/data/withSortedList.js index 81a06e76..2fde30b1 100644 --- a/src/data/composite/data/withSortedList.js +++ b/src/data/composite/data/withSortedList.js @@ -98,7 +98,6 @@ export default templateCompositeFrom({ for (const [stableIndex, symbol] of symbols.entries()) { const sourceIndex = symbolToIndex.get(symbol); - stableSortIndices.push(sourceIndex); sortedList.push(list[sourceIndex]); if (stableIndex > 0) { @@ -108,6 +107,7 @@ export default templateCompositeFrom({ } } + stableSortIndices[sourceIndex] = stableIndex; unstableSortIndices[sourceIndex] = unstableIndex; } -- cgit 1.3.0-6-gf8a5