Pro 3.1.3
When symbolizing by an Arcade Expression, the values are always text, even when explicitly told to return a number.
In this example, I have a Short Integer field called "Hmm".
If I symbolize by it directly, the symbol classes are sorted numerically
However, if I go into the Arcade Editor and input
Number($feature.Hmm)
It will sort the output as if it is Text.
I've noticed that it applies the color scheme in the correct order (e.g. 10 is always red), but the classes are sorted incorrectly.
Please change this behaviour.
I would suggest using leading 00s as workaround How To: Add Leading Zeroes to Labels in ArcGIS Pro.
But I agree, it would be nice to have something like this supported or even in the GUI:
return {"type":number, "value":Number($feature.Hmm)}
Unique values are always stored as strings, but we're sorting numerically for number fields which is why the behavior is different. Thanks for bringing this to our attention.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.