Sorting edit history.