Successfuly implemented sorting classes with table data