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 / How to sort in the bro...
Power Apps
Answered

How to sort in the browse screen by sharepoint list specific columns

(0) ShareShare
ReportReport
Posted on by 181

Hello everyone,

I would like the sort button to sort the items by "Cable left" which is one of the columns in my SharePoint list - "CLPeS Cable Store".

Would anyone help how to sort by a column called "Cable left"?

AT_AlanTse123_0-1685208032852.png

 

Below is the code of the item in my browse gallery:

SortByColumns(

Filter([@'CLPeS Cable Store'],

'Cable Type'=Dropdown1_3.Selected.Result, Location=Dropdown3_3.Selected.Result,

"Title"),

"Title",

If(SortDescending1,

SortOrder.Descending,

SortOrder.Ascending)

)

 

 

Thank you very much for your help.

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    Hi @AT_AlanTse123 ,

    Is this what you need ?

    SortByColumns(
     Filter(
     [@'CLPeS Cable Store'], 
     'Cable Type' = Dropdown1_3.Selected.Result, 
     Location = Dropdown3_3.Selected.Result
     ), 
     "Cable Left",
     SortOrder.Ascending
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • AT_AlanTse123 Profile Picture
    181 on at

    Thank you for your reply but it not work

  • WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    @AT_AlanTse123 ,

    "Did not work" does not really help me - do you get an error (if so, what) or the wrong result ? 

  • AT_AlanTse123 Profile Picture
    181 on at

    Oh Sorry,

    The error said that the the specified row "Cable left" does not exist

     However my sharepoint list has this ccolumn

    AT_AlanTse123_0-1685255895685.png

     

    Thank you very much for your help.

  • AT_AlanTse123 Profile Picture
    181 on at

    Hi @WarrenBelz ,


    I refer below website 

    https://powerusers.microsoft.com/t5/Building-Power-Apps/SortByColumns-specified-column-does-not-exists/td-p/329610

     

    and found that the reason is do with renaming the column as SortByColumn uses 'base' column names:

    now i updated as below, it works, thank you very much for your help.

    SortByColumns(
    Filter([@'CLPeS Cable Store'], 
    'Cable Type'=Dropdown1_3.Selected.Result,
    Location=Dropdown3_3.Selected.Result , 
    "field_6"), 
    "field_6", 
    If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
    )

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

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard