From 8cb3aeb80de01a82f4f2309a21181b389419aef9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Feb 2024 11:03:53 -0400 Subject: data: withSortedList: return proper unstableSortIndices (instead of nonsense) repeated runs indicate this is probably deterministic, so still more to investigate for withThingsSortedAlphabetically --- src/data/composite/data/withSortedList.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/data/composite/data/withSortedList.js') diff --git a/src/data/composite/data/withSortedList.js b/src/data/composite/data/withSortedList.js index a7942ab4..c86d1989 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, -- cgit 1.3.0-6-gf8a5