Actually, sorted Members are meaningless in an Environment with multiple Hierarchies.
The order of the Member in the Array would not allow us to derive its dimension…
Like the cell could be at the intersection of 2 Hierarchies and have 5 Members instead of 4.
I suppose that’s why the TM1 REST API doesn’t bother ordering them properly.
I think the best we can do is to ask for the UniqueNames instead of the Names and do the rest in JS.