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 / Big problems with simp...
Power Apps
Answered

Big problems with simple sorting of a gallery

(0) ShareShare
ReportReport
Posted on by 95

Hi there

 

I already opened up another topic about the nearly same problem. But to be honest, I again have problems with that sorting-function of my automatically created on basis of a sharepoint list.

 

DoctorJaegerX42_0-1687508947002.png

 

I want to sort the gallery by the Company Name ("Firma") on the left side. In the sharepoint-list, the name of the column is also "Firma". But I cant change it properly in the formula of the gallery. Every time I do this, there are some errors as if it doesn't recognize that column name.

DoctorJaegerX42_1-1687509052215.png

Any ideas? It should be so easy yet I don't know how to solve this.

DoctorJaegerX42_2-1687509096720.png

 

Categories:
I have the same question (0)
  • Verified answer
    Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @DoctorJaegerX42 ,

     

    Does this code help?

    Sort(
     Filter(
     Lieferantenliste;
     StartsWith(
     Firma;
     TextSearchBox1.Text
     )
     );
     Firma;
     If(
     SortDescending1;
     SortOrder.Descending;
     SortOrder.Ascending
     )
    )

     

    Do check the semi-colons as I'm used to commas ','

  • DoctorJaegerX42 Profile Picture
    95 on at

    Oh wow. That helped!!!! Perfect 🙂 Where was my mistake?

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @DoctorJaegerX42 ,

     

    I used Sort instead of SortByColumns

    Well it pretty much works the same, just that Sort accepts columnName without quotes and SortByColumns uses quotes. 

    I thought that might be the issue, so I modified the code accordingly

     

    Documentation Link

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 395

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 287 Super User 2026 Season 1

Last 30 days Overall leaderboard