improved date and time sort methods to prevent errors for lists of multiple data types
modified sort method to support lists with multiple data types