Sort Shapes

Running programmatically

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



How to use:


Running Programmatically

(Go to TOP)


Expression Explanation
Function Name SortShapes
<input dataset> A String representing the input layer.
<output dataset> A String - the full name of the output layer.
<Sort Fields> A String representing a list (separator ";") of the fields to be sorted together with the sort nethod for each field. Example: "Field1 Ascending;Field2 Descending;Field3 Descending"

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python[ETGWPath, "SortShapes", "input dataset", "output dataset", "Sort Fields"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "SortShapes" "input dataset" "output dataset" "Sort Fields"
.NET using ETGWOutX.dll SortShapes(input dataset, output dataset, Sort Fields)
ArcPy arcpy.SortShapes(input dataset, output dataset, "Sort Fields")


(Go to TOP)