I wanted to create a sorted enumerator so i created the attached class (.xpo) bellow.
PrivateProject_SortedEnumerator Dynaimcs Ax class to sort an enumerator
Example code (not complete)
methods = sysDictClass.methods(true,false,false).getEnumerator();
methods = CollectionHelper::SortEnumerator(methods);
while(methods.moveNext())
{
…code
}
It is not geared for performance so if anybody can create a better solution then please comment.