leetcode: sort list