web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sort list by alphabeti...
Power Apps
Unanswered

Sort list by alphabetically

(0) ShareShare
ReportReport
Posted on by 35

Hello, 

 

I have made a sharepoint list and added 70 items in that list now i am creating an app in powerapp by retriving the data from the sharepoint online list. The problem i am figuring out is my user want the app information list to be alphabetically order. But i am getting the information in any order. i have used this formula on my gallery : 
SortByColumns(Filter('School Info', StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

 

CAN ANYONE PLEASE HELP ME ?

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The forumla looks to be setup correctly, what is not working? Do you get an error? Show us the screenshot of the list. This formula is from the "Generate App from Data" did you do this? Did you remove the sort button? Error might be there because the variable SortDescending1 is never set.

  • Brian Dang Profile Picture
    3,976 on at
    SortByColumns(
     Filter('School Info', 
     StartsWith(Title, TextSearchBox1.Text)
     ), 
    "Title", If(SortDescending1, Descending, Ascending)
    )

    My guess is that your Title column is numerical, which is making it sort by the left-most digit. Can you check what it is validated for?

  • Dev Profile Picture
    35 on at

    Yes, I have made the sort icon set the property visible to false and its function is : UpdateContext({SortDescending1: !SortDescending1})

     

     

     

     powerapps.PNG

  • Dev Profile Picture
    35 on at

    Hello , 

     

    I have not made the sort visible as it was not in my use any way. My purpose that the user look the schools alphabetically and can search for the school from the seacrh label. But i want that the school name is east oro high school but if the user types oro in search label it should show them the east oro high school. so not only like "STARTSWITH" but I need all  the alphabets of "TITLE" to be displayed.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Not sure I understand what you are looking form. But if you are looking to search "Title" column with any word not only the first word use Search instead of Filter + StartsWith

     

    SortByColumns(
     Search('School Info', TextSearchBox1.Text,"Title"),
     "Title", 
     If(SortDescending1, Descending, Ascending)
    )
  • Dev Profile Picture
    35 on at

    I cannot use "SEARCH " as i saw online in one of the documentation if i am retrievieng information from the sharepoint list then the search function doesnot support the function in the powerapps. I will not give an error but the blue dot will come and it will work but only partial like it will search the schools but not with what i am looking for the same way as before.

  • Dev Profile Picture
    35 on at

    I cannot use "SEARCH " as i saw online in one of the documentation if i am retrievieng information from the sharepoint list then the search function doesnot support the function in the powerapps. I will not give an error but the blue dot will come and it will work but only partial like it will search the schools but not with what i am looking for the same way as before.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Where did you read it?

     

    Here on the Filter, Search and Lookup documentation I cannot find anything what you are claiming. Filter and Search work in similar ways with delegation so it does not matter which one you are using.

  • Dev Profile Picture
    35 on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I see.

    If you have less than 500 records, then it does not matter. If you have more, then I do not really know how you could search by string. On the bright side, in one of the recent webinars they mentioned that they are looking into increasing the 500 record limit.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard