Sort name/value pairs of JSON objects, but preserve array order.