Fix bug where cycleSort was not returning the sorted array

This commit is contained in:
Charlie Moore
2021-10-04 18:53:03 -04:00
parent b3e6eed3ce
commit 0da3880955

View File

@ -57,7 +57,7 @@ function cycleSort (list) {
writes++
}
}
return writes
return list
}
/**