Query-time sort ordering

On a per-query basis, you can specify a key on which to sort the records and a sort direction.

You can add a Sort type to a RecordList configuration that lets you specify a key to sort on and the sort direction. The Sort format is:
<Sort Key="keyName" Direction="dirOrder"/>
where:
  • keyName is the name of a standard or managed attribute based on which sorting is performed.
  • dirOrder is either Ascending for an ascending order or Descending for a descending order.
Note that the attribute name and the sort order are both case sensitive.
The following example shows an Ascending sort order based on the ModelName attribute:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ns="http://www.endeca.com/MDEX/conversation/1/0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
<ns:Request>
      <ns:ContentElementConfig xsi:type="ns:RecordListConfig"
          Id="RecordList"
          HandlerFunction="RecordListHandler"
          HandlerNamespace="http://www.endeca.com/MDEX/conversation/1/0" 
          MaxPages="2">
          <ns:RecordsPerPage>10</ns:RecordsPerPage>
          <ns:Page>1</ns:Page>
          <ns:Sort Key="ModelName" Direction="Ascending"/> 
          </ns:ContentElementConfig>
</ns:Request>
   </soapenv:Body>
</soapenv:Envelope>