With the recent performance improvements, the order of collections is no longer preserved. In order to provide consistent output, each collection can be sorted when being serialized.