Re-order a Domain

6604
15
07-12-2012 11:33 PM
Status: Open
Labels (1)
PeterRussell
New Contributor II

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.0EME0000000TR9V
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.

15 Comments
JosephPheil

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!

MarkVolz

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!

 

MarkVolz_0-1615928944640.png

 

PaulCote

Hey Gang, 

I think I have a solution.

  1. Create a table withthe code and description and a numeric sort field.
  2. Sort the table using the Sort tool.
  3. Create the domain using the Table to Domain tool.

Seems to work in ArcGIS Pro 2.8.

Have fun!

--pbc

GoWest
by

Please add manual sorting of a Domain.

Brian_Colson

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.