two queries to get data sorted by location AND time.