sort the revisions high to low on rollback and low to high otherwise, so they are executed in the right order