New (SortOrder constructor)
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 collection class sorting method, an empty SortOrder
produces a copy of the input collection.
Syntax
%sortOrder = [%(SortOrder For itemType):]New
Syntax terms
%sortOrder | A SortOrder object variable to contain the new object instance. |
---|---|
%(SortOrder For itemtype) | This optional specification of the class in parentheses indicates that the method is shared and does not operate on a specific instance. If you use this option, however, you must include the collection item type to which the selection expression will be applied, like this: %(SortOrder For itemtype): |
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:
%sortOrder = new %sortOrder = %(sortOrder for object stringlist):new %sortOrder = %sortOrder:new %arraylist2 = %arraylist1:sortnew(new)