Added support for default ordering to repository.