web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Lists and/or Dictionarys

(0) ShareShare
ReportReport
Posted on by 291

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

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    There's no a native method for ordering a List of <T> unfortunately.

    Available methods are listed here:

    docs.microsoft.com/.../list-data-type

  • Daniel Rimmelzwaan Profile Picture
    3,485 on at

    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

  • JJMc Profile Picture
    291 on at

    Thanks Stefano.....

    I'll try and make a procedure to sort my lists.

  • JJMc Profile Picture
    291 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans