Is it necessary to do `schema = schema.sort` ? Wouldn't `schema.sort` change the `schema` variable anyway?