a dog eats a sock then poops out the sock. thus making it a poo sock. it almost looks like a turd but you can tell that it is totally a sock caked in poo.
Sort out one's problems, contain and deal with one's problems, such that one has problems but at least they are localised. "Poo" is often replaced by "shit".