cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FlatFish
Helper II
Helper II

Sort by Ascending in gallery not working

Hi everyone,

 

I have a gallery view that is supposed to sort everything in ascending order. The formula is as follows: (Field_0) is the name of the bank and it should be sorted A-Z by the bank name).

 Sort(Search(Banking_Contact,Search.Text,"field_0"),Ascending)

The issue I am having is when a user inputs a new contact in the sharepoint list it will go to the bottom of the list and remain that way in the Power App when it is refreshed. The only way to "fix" it is to export the list in SharePoint, sort it A-Z in excel and then reupload it. This is an annoying process and I want to avoid it if at all possible. Is there something we should be doing differently?

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@FlatFish 

Please try the following,

 Sort(Search(Banking_Contact,Search.Text,"field_0"), field_0, Ascending)

View solution in original post

3 REPLIES 3
CNT
Super User
Super User

@FlatFish 

Please try the following,

 Sort(Search(Banking_Contact,Search.Text,"field_0"), field_0, Ascending)

It looks like that worked! Thank you! 

@FlatFish 

Glad to help!

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,824)