AnsweredAssumed Answered

Sort Field and then Calculate Sequential Values

Question asked by Sunny.Fleming on Jun 22, 2018
Latest reply on Jun 22, 2018 by Dan_Patterson

I have ZERO experience with ArcPy, Arcade expressions... yadda yadda. I basically limp along until something magically works and I'm a huge fan of Copy/Paste. THAT SAID, I'm dipping my toe into something that I thought would be easy...

 

I have a bunch of campgrounds, and these are in some parks. I want to give them sequential values based on sorting the PARK_NAME field alphabetically. Using Python 3 in Field Calculator, "Sequential Number" will only assign sequential values based on the Object ID field - it doesn't care how I've sorted it.

 

How do I tell it to use my sorted field instead of the Object ID? Help! 

Outcomes