added sorting of lists, date ranges for times