While the new domain tools in 10.1 are a good addition I would like to be able to manually re-order a domain that is not in any alphabetical order such as below.
The Domain Tools from http://resources.arcgis.com/gallery/file/geodatabase/details?entryID=D62A883B-1422-2418-8873-5721AB3... that could be added to previous arcgis versions were great. Something similar to how that would allow you to manually-ish reorder a domain would be a useful tool.
I wasn't able to get that sample to work in 10.1.
Hello,
I usually don't post on forums, but I was struggling with this same issue, and I "believe" I found a very simple solution that is working flawlessly for me so far *knock on wood*. For a Condition Domain it was being ordered High > Low > Moderate, but I wanted it to be High > Moderate > Low.
I tried a lot of the ideas on this thread, but what eventually worked best for me was to: open up the domain in ArcGIS Pro, select the domain that I want to reorder, then change the "Code" column to 1, 2, 3 (the order I want the list to appear), saved it - reopened the domain - and the order was exactly how I wanted it to be. You can make the Description column whatever you want.
Before:
Code: HIGH Description: High
Code: MOD Description: Moderate
Code: LOW Description: Low
After:
Code: 1 Description: High
Code: 2 Description: Moderate
Code: 3 Description: Low
Hopefully the simplistic Code values won't cause any unforeseen issues, but with how simple this was to reorder domains, it will definitely be the method I use unless I run into any issues as a result of this method.
Hope this helps someone!
Hello,
It would be useful if we could reorder the domain code entries manually. In the example below I would like to move "OOJ" to the last entry of the coded value domain table.
Thanks!
Hey Gang,
I think I have a solution.
Seems to work in ArcGIS Pro 2.8.
Have fun!
--pbc
Please add manual sorting of a Domain.
Especially when working with something like #utilitynetwork, this would be very useful. I like @DanielWebb solution, but there is no way to do that within geoprocessing scripting within Python. You have to do it within the UI.
A GP tool, that allows you to set the order, so it could be scripted would be very useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.