When getting events, actually sort into right order