You are here:
Data Sorting in Ascending or Descending Order
The orderCriteria sorts the List Item (LI) of a List Object (LO).

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
The orderCriteria sorts the List Item (LI) of a List Object (LO).
| Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled. |
The child element, orderCriterion, sorts the list based
on the input values. If more than one element is defined, then the first defined value is
sorted and the list is further sorted based on the subsequent defined values.
The supported attributes are:
| Attribute | Description | Data Type | Required |
|---|---|---|---|
| fieldName | Contains the name of the LI field of the LO to sort by. | String | Yes |
| direction | Direction of sorting order. Supported values are:
|
String | Yes |
| compareMode | Converts LI field values and literal value to string or number for filtering. Default is STRING. Supported values are:
|
String | No |
<orderCriteria>
<orderCriterion fieldName="prdId" direction="DESC" compareMode="NUMBER" />
</orderCriteria>

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.