Sort List

Exercise from LeetCode, it is accepted