Sort protobuf fields before serialization.