added class sorter