From 0da3880955e0641b4d6b34782bd3892cb4b08802 Mon Sep 17 00:00:00 2001 From: Charlie Moore Date: Mon, 4 Oct 2021 18:53:03 -0400 Subject: [PATCH] Fix bug where cycleSort was not returning the sorted array --- Sorts/CycleSort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sorts/CycleSort.js b/Sorts/CycleSort.js index c70737364..2ef689fcf 100644 --- a/Sorts/CycleSort.js +++ b/Sorts/CycleSort.js @@ -57,7 +57,7 @@ function cycleSort (list) { writes++ } } - return writes + return list } /**