Open Table of Contents

ET GeoWizards Scripting

Sort Shapes
(Go to the main page of the function)

Sorts the features of a feature class according to user specified fields and order methods.

Syntax    

Dim ET As  New ETGW_Core
Set variable = 
ET.SortShapes( pInFeatureClass, sOutFileName, _
                                                              fieldDictionary, sMessage)

The SortShapes method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
fieldDictionary Required. A Scripting Dictionary object that defines the fields to be used for sorting and the method used (Ascending or Descending) for each field. See the example for how to create the dictionary. Note if the method string is not "Ascending" or "Descending" (case sensitive) a descending method will be used.
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example