Logic Tags
Tag sort


This tag allows you sort data collections stored in memory as XPArrayLists. The property attribute will be used to construct the sorted list. If the property doesn't exist for certain entries in the list, those entries will then be ordered at the end of the list in alphabetical order based on their name.

This tag does not display the contents of the tag and should only be used as a singleton tag (i.e. <pt:logic.sort/>), rather than as a tag with both an open and close tag.


Tag Information
Tag Namesort

Attributes
NameTypeRequiredDefault ValueDescription
datastringtruenullThe key used to retrieve the XPArrayList data collection as a shared variable from Tag or PortletRequest scope memory.
sorteddatastringtruenullThe key used to store the sorted XPArrayList data collection as a shared variable from PortletRequest scope memory. If the data tag passed in is null, the tag will return a copy of the original data tag.
propertystringfalsetitleThe attribute used to sort the list items. The default is set to "title".NOTE: For collections defined by logic.collection, you must ensure that the property you are sorting by exists.A logic.collection containing only a string value is not supported.
scopestringfalseportlet requestThe scope used to store the variable. See the Logic tag library description for details about valid scope arguments.
sortedscopestringfalseportlet requestThe scope used to store the variable. See the Logic tag library description for details about valid scope arguments.


Copyright 2005 Plumtree Software, Inc.