Sort revisions