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 / Adding Alphabetical or...
Power Apps
Answered

Adding Alphabetical order to a filter

(0) ShareShare
ReportReport
Posted on by 52

Hey!

 

I have a Gallery that's sorted based on if a text field is populated, I need to somehow make it always sort in alphabetical order in addition to the already existing filter. 

 

TobiasSQA_2-1661768901143.png

^ This is the Items property of the gallery. 

 

Thanks in advance! 

Categories:
I have the same question (0)
  • Verified answer
    MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Use the sortbycolumns and descending.

    If(!IsBlank(txtsearch.Text),
    SortByColumns(
    Filter(
     PotentielleKunder2,
     txtsearch.Text in Title & Postnummber),
     "Title",Descending)
     ,
     If(
     !IsBlank(KategoriFilter.Selected.Value),
     SortByColumns(
     Filter(
     PotentielleKunder2,
     KategoriFilter.Selected.Value = Kategori.Value
     ),"Title",Descending),
     SortByColumns(PotentielleKunder2,"Title",Descending)
     )
    )

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube:
    https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter:
    https://twitter.com/phipps0218

  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    Hi @TobiasSQA ,

     

    Probably something like this:

     

    If(!IsBlank(txtsearch.Text),
    SortByColumns(
    Filter(
     PotentielleKunder2,
     txtsearch.Text in Title & Postnummber),
     "Title",Descending)
     ,
     If(
     !IsBlank(KategoriFilter.Selected.Value),
     SortByColumns(
     Filter(
     PotentielleKunder2,
     KategoriFilter.Selected.Value = Kategori.Value
     ),"Title",Descending),
     SortByColumns(PotentielleKunder2,"Title",Descending)
     )
    )


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard