It's a term used to tidy up the lay of a knot,, as well as sorting out things in your trousers..
So it will have come from all the Ex Navy lads who became sparkies after W.W.2.
Most of the older guys that were there when I started were ex Navy.
ex Navy, mmmm makes sense, especially the trouser reference....
