Preserving order
scriptease opened this issue · comments
Florian Agsteiner commented
Hello,
first of all thanks for the great project!
I have a question, is it somehow possible to preserve the order in the json?
Since core data only provides sets it would be great to e.g. set an index in the relationship.
Is something like that possible?
Kind regards,
Florian
Manuel García-Estañ commented
In these cases I just set the relationship as ordered
in the model. Then it is parsed as NSOrderedSet
and the JSON order is preserved.
Florian Agsteiner commented
Thanks, that works for relations :-), and for a list of root objects i just set the index manually!