Re-order a Domain

10365
19
07-12-2012 11:33 PM
Status: Open
Labels (1)
PeterRussell
Occasional Contributor

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.

19 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.  

MrRamonG

It would be very useful if domains could be sorted or ordered manually by dragging the coded values from one location in the list to another.

mthompson

I agree it would be very helpful for a drag and drop reordering for scenarios where you want almost all of a long list ordered alphabetically, but would like a single value at the top/bottom (list of street names with off-road or N/A at the top).

Laura
by MVP Regular Contributor

Agree. I have sizes and would like them ordered 2x2 up to 2x23. However it when sorting A-Z it sorts 2x23, 2x23, 2x3 rather than sticking 23 at the end. I need to be able to move the codes manually!

KShak
by

Tried updating a domain today in Pro 3.3.2 and yes, there is the option to sort alphabetically but I (and others in this thread) need my "unknown" and "not applicable" domain choices to be at the bottom of the list, not in the middle. It is customary for us to put the default domain at the top of the list and the unknown and NA at the bottom. Sorting alphabetical doesn't help this.

This thread has been going for a long time and this suggestion seems simple and important.

Yes, the table to domain tool will work but it would be MUCH EASIER to drag and drop or use a tool to reorder the domain table that already exists that is partially editable just not fully editable like we are suggesting.

Thank you for considering Esri 😉