Sorting final list