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 Apps
Answered

Sort by ID

(0) ShareShare
ReportReport
Posted on by 16

Team,

 

This is my first post in Power Apps, And just created SharePoint list and published app.

I see the list items are not getting sort based on list ID in App,Can any one please help me how can I make it.

 

Thanks & Regards,

Infanst_PowerAppDeveloper

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey,

     

    just set your gallery's items field (in advanced option) to:

     

    Sort(datasource/sharepoint list, ID, descending/ascending)

     

    Hope this helps.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @infant_Dev 

     

    You can use Sort function if you wish to sort the items based on ID.
     
    Sort(SharePointListName, ID, Ascending)
     
    Third parameter represents the order of Sorting, this can be Ascending or Descending.
     
    Also, if you want to expand this to multiple columns you can use SortByColumns function as:
     
    SortByColumns(SharePointListName, ID, Ascending,Name,Descending)
     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @infant_Dev ,

    Do you want to sort your Gallery Items based on ID column of your SP list?

     

    I have made a test on my side, please consider modify the formula within the Items property of the Gallery to following:

    SortByColumns(
    Filter('YourSPList', StartsWith(Title, TextSearchBox1.Text)),
    "ID", /* <-- Modify formula here */
    If(SortDescending1, Descending, Ascending)
    )

    8.JPG

     

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • infant_Dev Profile Picture
    16 on at

    Tq for your gentle response

  • deepak28sahoo Profile Picture
    4 on at

    How to sort the gallery w.r.t ID in the below formula..Kindly support..

    -------------------------------------------------------------

    Filter(
    'Global SEI Tracker',
    Region.Value = ThisItem.Value && StartsWith(
    ESN,
    txtSearchBox.Text
    ),
    IsBlank(cbSEIStatus.Selected.Value) || IsEmpty(cbSEIStatus.Selected) || 'SEI Status'.Value = cbSEIStatus.Selected.Value,
    IsBlank(cbEngineer.Selected.Value) || IsEmpty (cbEngineer.Selected) || Engineer.Value = cbEngineer.Selected.Value,
    IsBlank(cbDistributor.Selected.Value) || IsEmpty (cbDistributor.Selected) || Distributor.Value = cbDistributor.Selected.Value
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard