The <sortby> tag includes one or more <sortbyvalue> tags, which you can use to specify a property of the target object to be used in sorting the results of a targeting operation. The <sortbyvalue> tag has the following syntax:

<sortbyvalue value="{string}" [dir={direction}]>

The value attribute specifies the name of the property of the target object to sort by. The optional dir attribute specifies the sorting direction, one of ascending or descending; if unspecified, the direction defaults to ascending.

Example - This sorting directive indicates that the targeting results should be sorted by the lastModified property of the target objects, in descending order.

<sortbyvalue value="lastModified" dir=descending>

Note that the <sortbyvalue> tag does not take an end tag.

 
loading table of contents...