updated queries to display events in the order of increasing time