Phrase become well organized

A man called on the South African Department of Home Affairs to get its ducks in a row after he discovered he was still legally married to his wife, despite the fact that he divorced her two years before.