square away - Phrases/Idioms
The American Heritage® Dictionary of Idioms by Christine Ammer. Copyright © 2003, 1997 by The Christine Ammer 1992 Trust. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.
Put in order; also, get ready for. For example, Once we've got the files squared away, we can decide on next year's repertory, or She had to square away the house before leaving town. This expression uses square in the sense of “arrange in accordance with some principle,” indirectly alluding to the geometric square. [Early 1800s]