Details
Description
Fields are currently always listed in alphabetical order. In my quest to make our objects pretty-print nicer, I'd like to change the order. This can be done with converters, but it could be made more convenient.
One possible API:
xstream.setFieldOrder(Address.class,
new String[]
)
I'd expect that any unmentioned fields should be tacked onto the end, and specifying a field name that's not in the class should be an error.
Keeping the fields order as it is in the class would already be better than alfabetic. Don't know whether that's possible with reflection though..