cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Doors1980
Helper I
Helper I

Combine Search and Sort by Columns formula

Hi All,

 

I'm sorting a gallery using this working formula:

 

Sort(Search( Search(Issues, "Closed", "Status"), "Columbus","Title" ), Modified, SortOrder.Descending)

 

I'd like to modify this to use SortByColumns so that I can have an ascending/decending icon with the onselect property of:

 

UpdateContext({SortDescending1: !SortDescending1})

 

What Should I change my original formula to?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Doors1980
Helper I
Helper I

Sorted it:

 

SortByColumns(Search( Search(Issues, "Closed", "Status"), "Columbus","Title" ), "Modified", If(SortDescending1, Descending, Ascending))

 

 

View solution in original post

2 REPLIES 2
Doors1980
Helper I
Helper I

Sorted it:

 

SortByColumns(Search( Search(Issues, "Closed", "Status"), "Columbus","Title" ), "Modified", If(SortDescending1, Descending, Ascending))

 

 

View solution in original post

Cool.

So in words ... what is Search( Search(Issues, .....  doing ? Saying ?

DatabaseMX ('mx')
Microsoft Access MVP

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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
Users online (2,646)