Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Collection orderby specific column

(0) ShareShare
ReportReport
Posted on by 124

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:
  • timl Profile Picture
    35,189 Super User 2025 Season 1 on at
    Re: Collection orderby specific column

    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.

  • Flashback Profile Picture
    124 on at
    Re: Collection orderby specific column

    Yes this works 🙂

     

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

     

    Thanks you!

  • Verified answer
    timl Profile Picture
    35,189 Super User 2025 Season 1 on at
    Re: Collection orderby specific column

    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
    124 on at
    Re: Collection orderby specific column

    Hello @timl 

    i receive this 

    Flashback_0-1688726309382.png

    Thank you very much

    Jakub

  • timl Profile Picture
    35,189 Super User 2025 Season 1 on at
    Re: Collection orderby specific column

    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
     )
    )

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399