SortOrder methods syntax: Difference between revisions
Jump to navigation
Jump to search
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 2: | Line 2: | ||
replaced, so any manual edits will be lost. You've been warned. --> | replaced, so any manual edits will be lost. You've been warned. --> | ||
{{Template:Syntax list header|class=SortOrder}} | {{Template:Syntax list header|class=SortOrder}} | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="literal">%(SortOrder):[[Ascending (SortOrder function)|Ascending]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SortOrder For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[Ascending (SortOrder function)|Ascending]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="literal">%(SortOrder):[[Descending (SortOrder function)|Descending]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SortOrder For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[Descending (SortOrder function)|Descending]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="literal">%(SortOrder):[[List (SortOrder function)|List]]</span><span class="literal">(</span> <span class="term" title="List">sortOrderItems</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SortOrder For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[List (SortOrder function)|List]]</span><span class="literal">(</span> <span class="term" title="List">sortOrderItems</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="literal">%(SortOrder):[[New (SortOrder constructor)|New]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sortOrder</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SortOrder For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[New (SortOrder constructor)|New]]</span></p> |
Revision as of 23:56, 22 August 2011
The syntax for each of the SortOrder class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of SortOrder methods.
%sortOrder = [%(SortOrder For itemType)]:Ascending( itemFunction)
%sortOrder = [%(SortOrder For itemType)]:Descending( itemFunction)
%sortOrder = [%(SortOrder For itemType)]:List( sortOrderItems)
%sortOrder = [%(SortOrder For itemType)]:New