Attempting to write a sort for the list.