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

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,383 Super User 2025 Season 2 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,383 Super User 2025 Season 2 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,383 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard