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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sort and Filter a drop...
Power Apps
Answered

Sort and Filter a dropdown

(0) ShareShare
ReportReport
Posted on by 250

Hi,

 

I have been stuck on this i have a dropdown that is reading from a SharePoint list, but is not in alphabetical order. Currently i have a filter in place that is only showing the Request using the formula: Filter(SP data source, "Request" in Lower('Type of Request')) when i add the Sort i don't get the result i need. Sort(Filter(SP data source, "Request" in Lower('Type of Request')).'Item Line', Ascending)


Thank you

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @patty789 

    A couple of issues here.  The "sort by" field is missing and one bracket was in the wrong place.  See my code below.

     

    Sort(
     Filter(
     SP data source,
     "Request" in Lower('Type of Request')).'Item Line',
     ),
     'Item Line',
     Ascending
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Verified answer
    patty789 Profile Picture
    250 on at

    @mdevaney Thank you for you help, yet i kept getting an error, what worked for me was this. Sort(Filter(SP data sorce, "Request" in lower('Type Request')). 'Item Line', 'Item Line', Ascending). 

  • mdevaney Profile Picture
    29,989 Moderator on at

    @patty789 

    If your question was solved please mark as solution and close the thread.  I've corrected my syntax above.

  • Community Power Platform Member Profile Picture
    on at

    Hi.

    This simple solution works for me:

    Sort(Sharepoint data source, Column name, Ascending/Descending)

     

    Thanks.

  • dmclaughlin Profile Picture
    347 on at

     

    Sort(Filter('Livingston Presses', "Press-Heater-Plate"="P").'Press', 'Press', SortOrder.Ascending)
    I used this syntax in a dropdown on a power app and my issue is the values do not show.

    Distinct(Filter('Livingston Presses','Press-Heater-Plate'="P"),Press)

    If I use this syntax in the drop down I get my values but they are not sorted.

    Help?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard