Updated sorting of lists