I want to display every 1 second only 1 comparison in order to see visually how the the array is being sorted step by step .
I tried to add sleep(1) in the end of the