I am wondering how ArcGIS sorts the attribute tables when sorting by a field. With the "Show Domain and Subtype Descriptions" on it is not sorting alphabetically in either ascending or descending order, it will have the same codes grouped together but not in an order I can see. If I turn off "Show Domain and Subtype Descriptions" then it will sort according to the domain codes. The field in the table is of type "short" and the domain is specified in the subtype design.
We have the following domain with these codes.
When I sort ascending with the descriptions on it goes in this order:
Domain Code | Description |
|---|
30 | Wood - Red Pine |
31 | Wood - Western Red Cedar |
32 | Wood - Pine |
5 | Steel Galvanized |
3 | Composite |
9 | Precast Concrete |
1 | Aluminum |
6 | Steel |
0 | Unknown |
7 | Wood |
I found there is a bug but it only references if the domain code is missing.
BUG-000158191
How does ArcGIS sort by descriptions and does it still use the domain code in some way?