Filter lists values in alphabetical order of attribute list label, rather than numerical code

1685
6
05-13-2022 11:50 AM
MatthewMayfield
Emerging Contributor

I have a filter on an Experience Builder page using values from a feature service. The filter points to an integer field with an attribute list set up to translate those values to a text label (similar to a coded value domain). The filter orders the options alphabetically by label, rather than by the numerical code. I'm using predefined unique values. They are ordered correctly when using all unique values (but I need a truncated list). I tried the same filter in Web AppBuilder and it works as it should.

Does anyone know whether this is a known issue or have any ideas to get my values in order?


Thanks-

Matt

0 Kudos
6 Replies
TonghuiMing
Esri Regular Contributor

Hi @MatthewMayfield, what do you mean by the "numerical code"?

0 Kudos
MatthewMayfield
Emerging Contributor

I mean the stored Code from the attribute list, as opposed to the Label.

https://doc.arcgis.com/en/arcgis-online/manage-data/define-attribute-lists-and-ranges.htm

Thanks-

Matt

0 Kudos
TonghuiMing
Esri Regular Contributor

I see. Thanks for clarifying that.

As a matter of fact, we did an enhancement that users want to sort the value list intuitively, in the past release, which does happen for most of the user experience. I think that's why you are seeing this behavior.

Prior to that, the behavior was the same as WAB - we do not add any sorting to the predefined list.

0 Kudos
MatthewMayfield
Emerging Contributor

I'm not sure I understand. Shouldn't there be some way to control the sorting of my data in the filter other than by alphabetical order of the label?

0 Kudos
TonghuiMing
Esri Regular Contributor

Unfortunately, there are not - it will go either way, but one of them that is defined in our framework. Otherwise, it could be chaos in many user scenarios, mainly causing the mismatch from this specific predefined case vs. other widgets using the data like Table, List, etc.

 

It could be helpful to post it to the Experience Builder Ideas channel, for your specific case - keep the original order from service and do not apply any sort for the predefined values, and we will evaluate the case based on the feedback in general. Thanks.

0 Kudos
ryan_grammer
Esri Contributor

Hello all, this has been logged as ENH-000150684: "In the ArcGIS Experience Builder Filter widget, provide the ability to keep the order of the predefined values."

Please reach out to Esri Technical Support and open a case to have your account added to this enhancement request. The support ticket request can be submitted as, "I am running into a known limitation when trying to change the display order of predefined values in the Filter widget (ArcGIS Experience Builder). There is an enhancement for this issue, ENH-000150684, and I would like to be added to it."

Thank you,

Ryan Grammer | ArcGIS Enterprise Support Analyst
0 Kudos