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 :
Microsoft Dynamics AX (Archived)

Sorting a list

(0) ShareShare
ReportReport
Posted on by 500

Hi Guys,

Can we sort the values in a List(collection class)?

Regards,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dick Wenning Profile Picture
    8,705 Moderator on at

    use a .net class SortedList Class

    msdn.microsoft.com/.../system.collections.sortedlist(v=vs.110).aspx

  • dileep varma Profile Picture
    500 on at

    Thanks for your reply, I was looking for solution in X++(Dynamics AX).

  • Suggested answer
    Dick Wenning Profile Picture
    8,705 Moderator on at

    bad luck,

    perhaps with an array, but I have not tried my self

    msdn.microsoft.com/.../aa653716.aspx

  • Munib Profile Picture
    2,500 on at

    If you just need a collection class and not looking at Lists in particular.

    I would use a Set instead.

    msdn.microsoft.com/.../set.aspx

    As sets sort themselves.

    A list stores in the order you added in.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans