Hello
I want to get the property of a class, sorted by order in storage.
I know we can use
Set definition = ##class(%Dictionary.ClassDefinition).%OpenId(className)
Set listProperty = definition.Properties
For ii = 1:1:listProperty.Count(){
write listProperty.GetAt(ii).NameBut using GetAt sorts the results alphabetically.
Example :
Class Test.classExtends (%SerialObject, %XML.Adaptor, %JSON.Adaptor)
{
Property tiers As%String;Property journal As%String;
}listProperty.GetAt(1).Name = "journal" and listProperty.GetAt(2).Name = "tiers"
.png)