Expressions (phrases, clauses, etc.), Godan verb with 'ku' ending
to collect (e.g. one's thoughts); to get in order
何がなんだか分からない。頭がパニックに陥って整理がつかない。I didn't know what was what. The inside of my head had gone to panic mode and I couldn't get things straight.
Also written 整理が付く【せいりがつく】