Explorar o código

Regions sorted
Fixed #72

Andrew Grant hai 5 meses
pai
achega
0d30f4ee40

+ 2 - 1
src/main/java/scot/carricksoftware/grants/services/places/regions/RegionServiceImpl.java

@@ -74,7 +74,8 @@ public class RegionServiceImpl implements RegionService {
     }
 
     private Sort getSort() {
-        return Sort.by(Sort.Direction.ASC, "name");
+        return Sort.by(Sort.Direction.DESC, "country.name")
+                .and(Sort.by(Sort.Direction.ASC, "name"));
     }
 
     @Override