put to rights
put to rights or set to rights {v. phr.}, {informal}
To put in good order; clean up.
It took the company a long time to put the office to rights after the fire.
It took Mrs. Smith an hour to set the room to rights after the party.
Categories:
Source: A Dictionary of American Idioms