test the functions in Sort and EventClass

sortByDueDate still should be modified