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 / PowerApps Default Sort...
Power Apps
Answered

PowerApps Default Sorting with Values

(0) ShareShare
ReportReport
Posted on by 33

Hello,

 

I have a set of data that is sorted by a column called DataOrder. It is numbered from 1 through 12, see table below for example. The Issue I'm having is that powerapps does not sort it in the way I would expect, from 1 to 12 in order, it actually sorts like this:

1,10,11,12,2,3,4,5,6,7,8,9

 

This is incredibly annoying, since I specifically put in a column called DataOrder to order my data in the way you would expect...

It works the way you would expect for a data set less than 10, since it counts from 1 to 9 and then that's it.

Here is my code for reference: Sort(Table1,DataOrder,SortOrder.Ascending)

 

Does anyone know how I can fix this?

 

 

 

 

DataOrder

1
2
3
4
5
6
7
8
9
10
11
12
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,923 Most Valuable Professional on at

    The problem is that your DataOrder column is a string data type and not an integer.  So the column is sorting alphabetically rather than numerically.  Change the Data type on the column and it should work correctly.  If the list isn't a large one you should also be able to try this formula.  But it won't be delegable.

    Sort(Table1,Value(DataOrder),SortOrder.Ascending)

     

  • MartySt Profile Picture
    33 on at

    This worked! 

     

    Thanks so much.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard