Sort Coded Value Domain (Data Management)
Summary
Sorts the code or description of a coded value domain in either ascending or descending order.
Usage
- 
Only supports sorting coded value domains stored in version10.0 and later geodatabases.
 
Syntax
SortCodedValueDomain_management (in_workspace, domain_name, sort_by, sort_order)
| Parameter | Explanation | Data Type | 
in_workspace  | 
 The geodatabase containing the domain to be sorted. Must be a version 10.0 geodatabase or later.  | Workspace | 
domain_name  | 
 The name of the coded value domain to be sorted.  | String | 
sort_by  | 
 Specifies whether the code or description will be used to sort the domain. 
  | String | 
sort_order  | 
 Specifies the direction the records will be sorted. 
  | String | 
Code Sample
Sort Coded Value Domain Example (Python Window)
import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.SortCodedValueDomain_management("montgomery.gdb", "material", "CODE", "ASCENDING")
Environments
This tool does not use any geoprocessing environments
Related Topics
Licensing Information
ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015