added ability to sort list