sort visualization memory corrected