Changes order serialization in save query to make it easier to test.