This page is an example that illustrates the different results you can get when sorting by a single column and sorting with a secondary and tertiary column specified.
Sort Column: "{dsEmployees1::ds_SortColumn}" |
Sort Column: "{dsEmployees2::ds_SortColumn}" |
Sort Column: "{dsEmployees3::ds_SortColumn}" |
Sort Column: "{dsEmployees4::ds_SortColumn}" |
spry:sort is an attribute of convenience for sorting data sets. It is functionaly equivalent to using onclick="ds.sort('colname', 'toggle');".
The format of the attribute is as follows:
spry:sort="[dsName] col [col2 ... coln] [order]"
Both the data set name and the sort order to use are *optional*, but if specified, they *must* appear in the order above. You must specify at least one column to sort on, but you can also specify more columns for secondary, tertiary, etc sorts.
If a data set is not specified, the sort defaults to sorting whatever data set is listed first in the spry:region. If sort order is not specified, it defaults to toggle.
ID | Sort First and Last Name | Last Name and ID | ds_RowID |
---|---|---|---|
{@id} | {firstname} | {lastname} | {ds_RowID} |