Got the array sort to work, but I need to figure out how to run repeatedly until the array is fully sorted. Running the array sort manually over and over works