added sorting, but haven't implemented display of the list