Sort commits in CommitResponse