ArcGIS Pro 3.3.1; file geodatabase
GROUP_ID VALUES
1 0
1 1
1 0
2 0
2 0
3 1
3 0
3 1
I want to rearrange the VALUES data so that the values are sorted descending, sorted within each GROUP_ID partition.
GROUP_ID VALUES
1 1
1 0
1 0
2 0
2 0
3 1
3 1
3 0
How can I do that using the Field Calculator?
I’m aware of the Sort geoprocessing tool. But I don’t want to use Sort because it outputs a separate FC. I want to update the original FC directly. And I would prefer not to use the Sort tool, join it back to the original FC, and then do a filed calculation to bring in the joined/sorted values.
I don’t want to sort the rows, I want to edit the values and leave the row order as-is.