結果 : sort an array in swift without using sort function