Currently gson serialization change the order. For example, I have a LinkedHashSet item which requires saving using its history (when it has entered the list). However, when the setting is saved, it serialized it in a random order.
It would be good find a generic way of doing this if data needs to keep their order (e.g. by using LinkedHashSet) - you may need to define a custom serializer for it but I have no idea how this can be implemented at the moment.
Currently gson serialization change the order. For example, I have a LinkedHashSet item which requires saving using its history (when it has entered the list). However, when the setting is saved, it serialized it in a random order.
It would be good find a generic way of doing this if data needs to keep their order (e.g. by using LinkedHashSet) - you may need to define a custom serializer for it but I have no idea how this can be implemented at the moment.