New (SortOrder constructor): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:SortOrder:New subtitle}} | |||
This method creates a new instance of the SortOrder class. | This method creates a new instance of the SortOrder class. | ||
Line 13: | Line 7: | ||
produces a copy of the input collection. | produces a copy of the input collection. | ||
==Syntax== | ==Syntax== | ||
{{Template:SortOrder:New syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 20: | Line 14: | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==Usage notes== | ||
<ul> | <ul> | ||
<li>New is a constructor and as such can be called with no object, | <li>New is a constructor and as such can be called with no object, | ||
Line 35: | Line 29: | ||
</nowiki></p> | </nowiki></p> | ||
</ul> | </ul> | ||
==See also== | |||
{{Template:SortOrder:New footer}} |
Revision as of 17:41, 27 June 2011
Create a new, null SortOrder (SortOrder class)
This method creates a new instance of the SortOrder class.
The SortOrder created by New is empty, that is, without a
sorting order or sorting key.
Applied as the parameter of a Sort or SortNew method, an empty SortOrder
produces a copy of the input collection.
Syntax
%sortOrder = [%(SortOrder For itemType):]New
Syntax terms
%sord | A SortOrder object variable to contain the new object instance. |
---|
Usage notes
- New is a constructor and as such can be called with no object,
with an explicit class
name and collection item type, or with an object variable, even if
that object is null:
%sord = new %sord = %(sortOrder for object stringlist):new %sord = %sord:new %arraylist2 = %arraylist1:sortnew(new)