for i from 0 to n-1: for j from 0 to n-i-1: if arr[j] > arr[j+1]: swap(arr[j], arr[j+1])
Steps will appear here...