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 / Remove Default Collect...
Power Apps
Suggested Answer

Remove Default Collection Sorting

(0) ShareShare
ReportReport
Posted on by 18
Hi Community
 
I have created below collection but it seems by default it gets sorted alphabetically. How do I keep same column order as created (i.e. Column 2, 3 and 1)?
 
ClearCollect(
    MyCollection,
    {
        Column2: "test2",
        Column3: "test3",
        Column1: "test1"
    }
);
 
Below image shows how this is currently coming up. I need this to show as Column2 | Column3 | Column1 same order as indicated above.
 
Note: I have used ShowColumns function to specify the order but it keeps coming back sorted alphabetically. 
 
Any idea how to override the default collection sorting?
 
Thanks
  • Suggested answer
    Ram Prakash Duraisamy Profile Picture
    5,891 Super User 2026 Season 1 on at
    Hi,

    Try Storing the Values in a Collection first then try like below
     
    ClearCollect(
    CollectionDuplicate,
    ShowColumns(
    MyCollection,
    "Column2",
    "Column3",
    "Column1"
    )
    );
  • Jeff_VS Profile Picture
    18 on at
    Hi @Ram
     
    I did try that before but still same result. I actually asked Copilot and that was one of the suggestions to use ShowColumns but as I mentioned in my original post, I had tried that and it did not work.

    No matter what I do It seems the end result is always that collection will be sorted alphabetically.
     
    Any other idea?
     
    Thanks
    Jeff

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard