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 Apps
Answered

sort

(0) ShareShare
ReportReport
Posted on by 28

Hello, I'm trying to make a groupby view in powerapps... and everything works except list items are not sorted. So for the gallery when items are set to Distinct(Filter([@listName], TextSearchBox.Text in Title), letter) - this works will show the groupby letter but items are not sorted aphetically by Title. However when I try to add sort like this: SortByColumns(Distinct(Filter([@listName], TextSearchBox.Text in Title), letter), "Title", If(SortDescending, Descending, Ascending)) the gallery is empty. 

 

Can someone explain to me what is happening and what I should do? TIA!

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Once you use distinct, the effect is to produce a single column table of unique values named "Result". That will be the name you should sort instead of Title.

  • weiwei3k Profile Picture
    28 on at

    Got it thanks @Drrickryp for the explanation... I thought I was reading the sort doc on microsoft.com... I don't believe they mentioned it... that is fundamental.

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard