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

Sort by columns in a drop down using columns syntax

Hi everyone.  I asked this question last week, rather poorly, so I am giving it another shot!


I am trying to sort by columns a drop down using the code below:  


SortByColumns(Filter(Game_view_powerappss,StoreID= Value(varUser.Department)),If(Toggle4_1.Value,"cr3db_seqorder","cr3db_gamenameandmodifier"),Ascending))


This code is working perfectly on a gallery, but only partially on a drop down.  The 2 dataverse columns are seqorder (a decimal column) and gamenameandmodifier (a text column).  The gamenameandmodifier column, when sorted, results in an alphabetical layout, which is exactly what I need.  When I click the toggle in the other direction, the data is sorted by seqorder, which goes from 1-200 correctly.  These both work in the gallery, but not in the dropdown.  Only the alphabetical works in the dropdown.  I am trying to show the data from the gamenameandmodifier in the dropdown.  I have very similar code that works in a sharepoint list for the dropdown, but not in the dataverse.  Not sure if thats my issue or I am missing something in my syntax.


Any help would be great, thank you!


Super User
Super User


Please try 

     {gameview: Filter(
                       Game_view_powerappss,StoreID= Value(varUser.Department)
      }, If(
            Toggle4_1.Value, Sort(


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,134)