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 / Sort by columns using ...
Power Apps
Answered

Sort by columns using number

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

I want to sort my columns by number but it goes like this -> 1 10 11 12 13 

Picture (Highest line on the right): https://gyazo.com/9ad2e2c580c9d07a66d1eb94f611eab1

How could I fix this?

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fixed using the Sort + value function instead of SortByColumn 

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Using SORT + VALUE will cause delegation warnings once your dataset exceeds 2,000 rows.  Its best to address this another way.

     

    Can you please share your current code and I will advise?

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is the code I used @mdevaney : 

    Sort(
     Filter(
     ProjectLijsten,
     Order = First(
     Split(
     Gallery1.Selected.Result,
     "-"
     )
     ).Result
     ),
     Value(Subordernummer)
    )

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Thanks for sharing your code.  Is Subordernummer a Text data type in your datasource?  If yes, it should be changed to number.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It is a text column, it does not really matter though, the end result will never have more items than 20 @mdevaney 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    Just a shortcut

     

     

    Value(Text)=(Text)*1

     

     

    FYI, you can multiply a text value *1 and it will convert it to a number. I use this shortcut frequently in formulas in my apps.

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
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard