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 / Collection orderby spe...
Power Apps
Answered

Collection orderby specific column

(0) ShareShare
ReportReport
Posted on by 145

Hello,

 

i need the collection order by column "CupNumber" but i have a problem with values higher than 10...

 

Flashback_0-1688724921229.png

 

This is my formula

 

ClearCollect(colSamplesForExport1,SortByColumns(Filter(FTIR_samples,Run=Value(varRun),Valid=true),"CupNumber",SortOrder.Ascending))

 

Thank you very much

BR

Jakub

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,813 Super User 2026 Season 1 on at

    Hi @Flashback 

    Something like this should work better for you.

    ClearCollect(colSamplesForExport1,
     Sort(Filter(FTIR_samples,Run=Value(varRun),Valid=true),
     Value(Last(Split(CupNumber, "_"))),
     SortOrder.Ascending
     )
    )
  • Flashback Profile Picture
    145 on at

    Hello @timl 

    i receive this 

    Flashback_0-1688726309382.png

    Thank you very much

    Jakub

  • Verified answer
    timl Profile Picture
    36,813 Super User 2026 Season 1 on at

    Hi @Flashback 

    Can you try this instead?

    ClearCollect(colSamplesForExport1,
     Sort(Filter(FTIR_samples,Run=Value(varRun),Valid=true),
     Value(Last(Split(CupNumber, "_")).Value),
     SortOrder.Ascending
     )
    )
  • Flashback Profile Picture
    145 on at

    Yes this works 🙂

     

    Delegation warning i received but my collection can contain max 100 records so there is no problem right?

     

    Thanks you!

  • timl Profile Picture
    36,813 Super User 2026 Season 1 on at

    If FTIR_samples contains more than 2000 rows, this could be a problem. In that case, you might want to populate an initial collection without the sort, and to then sort on the initial collection.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard