Sort List. Will not add Java or Python code, it took some time to skip a problem.