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 and SortByColums ...
Power Apps
Answered

Sort and SortByColums question

(0) ShareShare
ReportReport
Posted on by 264

Hello Community,

Looking for guidance.

I have gallery control SortByColumns on Autoincremented ID.

SortByColumns(Database,"id",Ascending)

 

However my gallery Ascending is wrong: 

(I have 1, 2, 3,.... 18 ID in the dataverse)

 

 

p_doc_0-1655423742822.png

p_doc_1-1655424760217.png

 

I wanted the ID to display in ascending order.

I am not sure what is wrong with the formula.

Any help is appreciated.

 

 

Categories:
I have the same question (0)
  • Verified answer
    365-Assist Profile Picture
    2,324 Moderator on at

    Your number seems to be Text so I believe you need:

    Sort(Database,Value("id"),Ascending)

    Although you may get delegation warnings.


    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

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 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard