toString method added to SortList