Call 1-888-670-1652

 Spire CoreDB Connect Error (2002) Connection timed out

Attribute: order-dir

The order-dir attribute can be used to control the direction in which individual news items will be listed within the feed, using the criteria specified by the order-by attribute.

This attribute can be completed with a value of either "asc" or "desc," which, respectively, will cause the news items to be sorted in ascending and descending order within the news feed on the basis of the criteria specified by the order-by attribute.

For example, if combined with an order-by attribute with a value of "release_date," the order-dir attribute will determine whether the news feed will be sorted with the oldest news item first (ascending) or with the most recent news item first (descending).

Back in the "Source" editor window of the page on which you are creating the news feed, simply enter the sys:news-list tag, along with the order-dir attribute and desired value, and the outcome should look something like this:

<sys:news-list order-dir="asc" />