Added ordering to base repository