Something is wrong

don’t know why my selection sort code arrange the array in ascending order from no. 12,as it have to start from 11.

refer to this correct code here