Fix repoOrderBy.