About to replace scanArrayRecursive.
Sort has been sorted.