cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WebPortal
Post Prodigy
Post Prodigy

Sort gallery with variable on 2nd argument

Hello,

 

And Happy 2021 to everyone!

 

Does anyone know if the Sort function accepts a variable on the 2nd argument?

 

For example:

MyVar is: "ColumnA"

 

And I want to sort a gallery based on that column with:

Sort(MySPList, MyVar, Ascending)

 

The value of MyVar changes depending on the icon a user clicks next to every column of the gallery.

 

But although the text is changing correctly each time the user clicks on one of the icons, the Sort function of the gallery isn't responding.

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

Please check this Post:

https://powerusers.microsoft.com/t5/Building-Power-Apps/SortByColumns-and-using-variable-sort-column...

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

1 REPLY 1
eka24
Super User III
Super User III

Please check this Post:

https://powerusers.microsoft.com/t5/Building-Power-Apps/SortByColumns-and-using-variable-sort-column...

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Helpful resources

Announcements
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 Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (69,220)