interchange sort check up and working