As an optional step when creating targeting rules, you can sort targeting results by specific content properties (author name, for example) in either ascending (A-Z, 1-9) or descending (Z-A, 9-1) order. This allows you to control the order in which the content items are retrieved and displayed from a content repository.

For example, if you sort targeted content items in ascending order by author, items are displayed from the content repository in alphabetical order by author name. The application developers can then, in turn, set up a targeting servlet bean that controls the order in which these retrieved items appear on a Web page. For example, the developers can set up a servlet bean that displays the first 10 items as they are retrieved from the content repository (in alphabetical order by author). They can also specify additional sorting criteria within the servlet bean that re-sorts and displays those 10 items (by title, for example).

Note: The sorting order specified by a developer in a targeting servlet bean overrides the sorting order specified in the content targeter. If no sorting order is specified in the servlet bean, items are displayed in the order in which they are retrieved from a content repository.

To sort targeted content items:

 
loading table of contents...