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

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,551)