sorting now OK
A[i] = i program now OK