Showing results for 
Search instead for 
Did you mean: 
Helper IV
Helper IV

Sorting Option Set



I have an option set (single select choice field) which I only have integers in and I am trying to sort these ascending. The option set is for Case Size and since going live an addition needs to be added in but I want my dropdown to show the right ordering. I have tried every type of sorting possible and I can't work out why it isn't working:


This is my standard unsorted code: Choices('Case Size Option Set')


These are the variations I have tried without success:


  • Sort(Choices('Case Size Option Set'), Ascending)
  • Sort(Choices('Case Size Option Set'),"Value", Ascending)
  • SortByColumns(Choices('Case Size Option Set'), Ascending)
  • SortByColumns(Choices('Case Size Option Set'),"Value", Ascending)


Can anyone help with this?




@landscapingfool @LauraMay 


I made a slight tweak to the code in my edit above. You may have figured it out already but it will sort it properly if you have an integer. 

my example I had like 1, 2, 3...12, 13 so when I used the first method it sorted it like 1, 12, 13, 2, 3. When I put the Value before the text that fixed it. 

The value(text(value)) thing I never would have thought of. Creativity amongst the cursing. Dude, you know how to dig in!

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (22,402)