Three sheets to the wind ....
Sailing obviously, but can't remember how it could be used as a simile.
On a yacht, at least... The mainsail (the big one in the middle) is controlled by a sheet (rope) attached to the boom (the bit that clonks your head shortly after the skipper starts loudly telling you that he’s about ready for something). The jib (flappy sail at the front) has two sheets (ropes) running from the clew (free corner) to port and starboard (I think you know these ones) to control it.
So, three sheets left to the wind to do what it wants, makes progress somewhat random. Even if there is an attempt to steer in the right direction.
Er... is there any rum left?