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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,993 Super User 2026 Season 1
YUN ZHU 1,116 Super User 2026 Season 1
Khushbu Rajvi. 557 Super User 2026 Season 1