Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Acronym List Search and Sort Question

Posted on by

Hello everyone,

 

I'm new to PowerApps and this is my first time writing in.  I have built an Acronym PowerApp with the following browse gallery code:

 

SortByColumns(Filter(Acronyms, StartsWith(Acronym, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

I want to be able to do two things:

1) Search for an acronym (e.g. asap) and have it return that result (the above code works fine for that).

2) I want to return a list of all acronyms beginning with a specific letter with all of the results sorted in alphabetical order. The first part is okay- if I type in the letter P I get all of the acronyms that start with the letter P, but they don't appear in alphabetical order.

 

Can someone please help me out?  If we need to reference a secondary column, I do have a column in my SharePoint list called "Letter".

 

Thank you,

Teresa

Categories:
  • Verified answer
    Jeff_Thorpe Profile Picture
    Jeff_Thorpe 6,094 on at
    Re: Acronym List Search and Sort Question

    I think you just need to make one small change to your SortByColumns and change "Title" to "Acronym".

     

    SortByColumns(Filter(Acronyms, StartsWith(Acronym, TextSearchBox1.Text)), "Acronym", If(SortDescending1, Descending, Ascending))

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard