web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sorting gallery by cho...
Power Apps
Answered

Sorting gallery by choice column

(1) ShareShare
ReportReport
Posted on by 181

I have a screen with three galleries, each filtered to show items based on stage.

Amber_L_0-1721078834160.png

 

Each gallery has the following on the items property:

 

    Filter(
        'Manufacturing Pack Planner',
        Stage.Value = "To Do",
        'SearchBar (CFR)_1'.Text in Title || 'SearchBar (CFR)_1'.Text in Suite.Value || 'SearchBar (CFR)_1'.Text in Details
     
    )
 
 
I have another column for each item that determines the priority of the task (high, medium and low). How can I sort my galleries so that they show in order of high priority at the top and then medium and then low?
 
Thanks in advance!

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,928 Moderator on at

    Hi @Amber_L 

     

    If you wanted to make it super easy on yourself, you would have another Column, and assign priority by Number

     

    So High = 1

    Medium = 2

    Low =3 

     

    Then wrap your Filter in the Sort

    SortByColumns
     Filter(
     'Manufacturing Pack Planner',
     Stage.Value = "To Do",
     'SearchBar (CFR)_1'.Text in Title || 'SearchBar (CFR)_1'.Text in Suite.Value 
     || 'SearchBar (CFR)_1'.Text in Details
     
     ),
     NumericPriorityColumn,
     SortOrder.Ascending
    );

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Verified answer
    rzaneti Profile Picture
    4,379 Super User 2026 Season 1 on at

    Hi @Amber_L ,

     

    Another way to solve this problem is to create the column inside your gallery: 

    Sort(
     AddColumns(
     [your filter expression here], 
     order, 
     Switch(Priority, "High", 1, "Medium", 2, "Low", 3)
     ), 
     order, 
     SortOrder.Ascending
    )

     

    Just add your current expression into the [your filter expression here] 🙂  

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/ 
    https://www.linkedin.com/in/raphael-haus-zaneti/ 

  • Amber_L Profile Picture
    181 on at

    This worked perfectly, thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 321 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 289 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 200 Super User 2026 Season 1

Last 30 days Overall leaderboard