Sort revisions before comments, so the creation of a relation is the first event in the history