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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,744)