SortOrder methods syntax: Difference between revisions
Jump to navigation
Jump to search
m (Automatically generated page update) |
m (Automatically generated page update) |
||
(One intermediate revision by one other user not shown) | |||
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="squareb">[</span><span class="literal">%(SortOrder For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <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="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="ItemFunction">itemFunction</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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"> | <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="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="ItemFunction">itemFunction</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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"> | <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="squareb">[</span><span class="literal">%(SortOrder For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <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> |
Latest revision as of 19:44, 18 July 2012
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