sort methods and leetcode update