<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.opengis.net/ogc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" elementFormDefault="qualified">
	<xsd:include schemaLocation="../../filter/1.0.0/expr.xsd"/>
	<!-- ============================================= -->
	<!-- SORTBY EXPRESSION                             -->
	<!-- ============================================= -->
	<xsd:element name="SortBy" type="ogc:SortByType"/>
	<!-- ============================================= -->
	<!-- COMPLEX TYPES                                 -->
	<!-- ============================================= -->
	<xsd:complexType name="SortByType">
		<xsd:sequence>
			<xsd:element name="SortProperty" type="ogc:SortPropertyType" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="SortPropertyType">
		<xsd:sequence>
			<xsd:element ref="ogc:PropertyName"/>
			<xsd:element name="SortOrder" type="ogc:SortOrderType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:simpleType name="SortOrderType">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="DESC"/>
			<xsd:enumeration value="ASC"/>
		</xsd:restriction>
	</xsd:simpleType>
</xsd:schema>

