MongoDB orderBy with findAll in CrudRepository
I have been using the Repository feature of spring-data-mongodb with some success. However, I have a problem trying to define a method name that will find all and sort. There is no selection, so a method like findAllOrderByNameAsc(). would be perfect. However, this fails with
Caused by: org.springframework.data.mapping.PropertyReference Exception: No property asc found for type java.lang.String
I have also tried findCountriesOrderByNameAsc(). I also tried leaving off the Asc from the method name, but that results in a different error at runtime.
Infor Global Solutions