## Package org.opengis.filter.sort

An SortBy indicates the ordering requested during a data query.

See:
Description

Interface Summary
SortBy: Defines the sort order, based on a property and ascending/descending.

Class Summary
SortOrder: Captures the `SortBy` order, `ASC` or `DESC`.

## Package org.opengis.filter.sort Description

An SortBy indicates the ordering requested during a data query. The following is adapted from the following specifications:

- OpenGIS® Filter Encoding Implementation Specification Version 1.1
- OpenGIS® Catalogue Service Implementation Specification 2.0.1

An SortBy can be formed using the elements: `Add`, `Subtract`, `Multiply`, `Divide`, `PropertyName`, `Literal` and `Function`. They all belong to the substitution group expression which means that any of them can be used wherever an expression is called for. In addition, the combinaison of these elements are themselves expressions and can be used wherever an expression is called for.

### FeatureCollections

The contents of a FeatureCollection are not defined with respect to order.

### FeatureLists

A FeatureList represents an ordered collection of features, possibly using a siers of SortBy elements to define the intended order.

### Catalog and Web Feature Server

Both the Catalog and Web Feature Server specifications all the use of SortBy during requests.

Copyright © 1994-2008 Open Geospatial Consortium. All Rights Reserved.