reorder the resource set and the import