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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Sort icons - wanting to sort 2 different columns (not sorting both at same time)

(0) ShareShare
ReportReport
Posted on by 28

Hello

This is a newbie question but I can't seem to find the answer why my sort icon does not function.

 

I put a sort icon at the top of my screen - it is above the template gallery and I'm wondering if this is my issue but I don't know how to fix it.

 

The template gallery has a data connection to a sharepoint list and the gallery pulls in the lists correctly.

 

I added the sort icon - but whenever I try to add it, it always goes onto the store info form and not under the gallery

 

My issue is that I can't get it to actually sort.  On the ONSELECT I have entered

Sort('Store Locations',Location)

 

(store locations is the name of the list and location is the column name)

 

Am I entering the formula incorrectly or is there some place else that I need to add a formula to get this to work?

 

Thank you

Becky

 

 

BeckyC_0-1604667767982.png

 

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,266 Moderator on at
    Re: Sort icons - wanting to sort 2 different columns (not sorting both at same time)

    Hi @BeckyC ,

    Set the OnSelect property of your icon -> UpdateContext({SortDescending1: !SortDescending1})

    Set Items property of your Gallery -> Sort('Store Locations', Location, If(SortDescending1, Descending, Ascending))

     

    Hope it helps !

  • BeckyC Profile Picture
    28 on at
    Re: Sort icons - wanting to sort 2 different columns (not sorting both at same time)

    Thank you so much.  I knew I was probably missing a very basic piece.

     

    Thanks

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard