Adds ordering and get latest by to the meta class in events model