reworked sort to rely on the list item attributes rather than the model attributes