sort the lists