/** * Construct a sorted view of this content. * <p> * Sorts may be combined togther in a stable fashion, in congruence * with the Filter 1.1 specification. * </p> * This method should also be able to handle GeoTools specific * sorting through detecting order as a SortBy2 instance. * * @param order * * @since GeoTools 2.2, Filter 1.1 * @return FeatureList sorted according to provided order */ public SimpleFeatureCollection sort(SortBy order) { if( order instanceof SortBy2){ SortBy2 advanced = (SortBy2) order; return sort( advanced ); } return null; // new OrderedFeatureList( this, order ); } /**
/** * Construct a sorted view of this content. * <p> * Sorts may be combined togther in a stable fashion, in congruence * with the Filter 1.1 specification. * </p> * This method should also be able to handle GeoTools specific * sorting through detecting order as a SortBy2 instance. * * @param order * * @since GeoTools 2.2, Filter 1.1 * @return FeatureList sorted according to provided order */ public FeatureList sort(SortBy order) { if( order instanceof SortBy2){ SortBy2 advanced = (SortBy2) order; return sort( advanced ); } return null; // new OrderedFeatureList( this, order ); } /**