Using API, how can you use the MEGA Operator “Order” to reorder Items in a collection automatically?
It would be enough to turn of alphabetic ordering and instead order chronologically:
Calling add(“B”), add(“A”), add(“C”) in order results in the Items ordered A,B,C. We are trying to preserve the order (B,A,C), or manually set it.
How can we do this?
Solved! Go to Solution.
GetCollection("<name collection>", "<sorting criteria>")
eg. GetCollection("Functional Process", "Name")
Did you use the criteria "order" (manual) or "creation date" (automatic) ?
I think it's working in your case :
This is still not what we wanted to do, but we have found out ourselves:
You have to get the Relationship of each MegaObject in the collection and set its “Order”-Property. The sorting will then be in ascending order of the integers put into “Order”.