Sort the list.