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

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
    152,855 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
    152,855 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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard