Added SortType class