update queries so they are sorted by start time instead