> On 25 Jul 2018, at 17:54, Henrik-Nergaard <draag...@outlook.com> wrote:
>
> Hi Peter,
>
> This functionallity is already available in STON where it preserves the
> order when you use an OrderedDictionary.
> And was implemented for the usecase of dealing with fileout and versioning.
> Perhaps the same could be added to NeoJson so that instead of some magic
> flag you provide an OrderedDictionary sorted as you would like and it would
> then preserve the order.
You are right, using OrderedDictionaries would fix the order.
But I don't think that is what he wants: to fix the order of arbitrary objects
being mapped.
Even in STON the order of properties of objects is undefined (as it is in JSON).
> If you aim to use it to preserve metada for filetree then there is a patch
> for that which can be found at
> https://github.com/DraagrenKirneh/PharoUtilities/tree/master/FileTreeFix
>
> Best regards,
> Henrik
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>