Implemented SortedList to return sorted items