sort list finiesh, but worst time is O(n^2)