« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/data/composite/data/withSortedList.js2
1 files changed, 1 insertions, 1 deletions
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;
         }