Use the correct order when clean tables