sort schema and table names to preserve namespace and table oid