added order by to events