Hello,
I am using Castor for XML Binding.. We need to sort the XML based on two different fields. Is there way we can specify the sort order in castor while marshalling?
Which will be a better approach to do this sorting, if castor don't have this feature.
Here is the actual problem with Sorting...
I have two collections of two differnt objects, which is ordered by date sepaterly. I set these two collections to another object and we have the correspoing mapping file which will have the XML generated in the order of the collections defined in the mapping file.. this is okay.
But now I want to order these two different set of collections ordered by the dates on both in the XML....