Sorting lists of different size