Notifications
Announcements
No record found.
Good morning all.
Is there any way (not manually), in which you can sort a List or a Dictionary by its key, value, etc?.
Thank you ever so much
There's no a native method for ordering a List of <T> unfortunately.
Available methods are listed here:
docs.microsoft.com/.../list-data-type
Have you tried filling them in order? Like if you want to fill a list of names, you could sort the source first and then fill the list. It'll technically be in index order but effectively sorted the way you filled the list. Not sure if that applies to dictionaries though
Thanks Stefano.....
I'll try and make a procedure to sort my lists.
Thanks for your answer Daniel.
But I can't sort it in advance. I have a text whitout order (3;45;1;234;7.....) in a text variable and I need these numbers ordered.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,151
Jainam M. Kothari 1,443 Super User 2025 Season 2
YUN ZHU 1,092 Super User 2025 Season 2