sort list python leetcode