ensure update/insert hashes are ordered properly for bindings