The SortObjects method sorts objects on the selected layer.
Syntax
object.SortObjects( Type, Ascending, IgnoreCase, DataCol, LabelInFirstRow )
Parameter |
Type |
Description |
Type |
optional; sorting selection, default is mvSortByPID |
|
Ascending |
Boolean |
optional; true to sort ascending |
IgnoreCase |
Boolean |
optional; true to ignore case |
DataCol |
Integer |
optional; data column when Type is mvSortByLinkedData |
LabelInFirstRow |
Boolean |
optional; true if there are labels in the first row |
Example
'SortObjects
'Sort the objects in the Object Manager by SID in descending order
CurrentLayer.SortObjects(Type:=mvSortBySID, Ascending:=False)
Used by: Layer object