Alphabetical Sort within a Record

المشرف العام

Administrator
طاقم الإدارة
I am performing a union on a polygon feature class with multiple overlapping polygons. Each of the records in the resulting feature class can be thought of as "unique area" polygons made up of the various combinations of other polygons.

In my results I want each "unique area" record to contain the names of all the polygons that make it up, and I want those names listed alphabetically.

For example:
Ideal Resulting Table:



So far I have been able to do the union and then do a spatial join back to the original feature class and in the field map of the Spatial Join tool make the merge rule "Join" for attribute I want to concatenate (and indicate a delimiter). This gives me results like the following:



I can use .split(",") to divide this into separate fields. My question is: how can I sort that Polys field so that those polygons are in alphabetical order?



أكثر...
 
أعلى