public Iterable < ? extends CatalogExt > getCatalogs ( ) { if ( catalogs == null ) readCatalogs ( ) ; List < CatalogExt > result = new ArrayList <> ( ) ; for ( CatalogExt ext : catalogs . values ( ) ) result . ( ext ) ; Collections . sort ( result , ( o1 , o2 ) -> o1 . getCatRelLocation ( ) . compareTo ( o2 . getCatRelLocation ( ) ) ) ; // java 8 lambda, baby return result ; }
return sorted catalogs