uses sql 'order by date, time' to sort events