« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/data/withSortedList.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite/data/withSortedList.js')
-rw-r--r--src/data/composite/data/withSortedList.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/data/composite/data/withSortedList.js b/src/data/composite/data/withSortedList.js
index a7942ab..c86d198 100644
--- a/src/data/composite/data/withSortedList.js
+++ b/src/data/composite/data/withSortedList.js
@@ -92,7 +92,7 @@ export default templateCompositeFrom({
         const sortedList =
           sortIndices.map(index => list[index]);
 
-        const stableToUnstable =
+        const unstableSortIndices =
           symbols
             .map((current, index) => {
               if (index === 0) {
@@ -117,9 +117,6 @@ export default templateCompositeFrom({
               return accumulator;
             }, [0]);
 
-        const unstableSortIndices =
-          sortIndices.map(stable => stableToUnstable[stable]);
-
         return continuation({
           ['#sortedList']: sortedList,
           ['#sortIndices']: sortIndices,