Change the way to sort revision.