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,514 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,935 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!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard