changesets should be sorted before grouping