When my sock supply wears out, I make a point of buying 9 pair of identical socks, so that matching socks after washing becomes easy.
I know what you mean. I keep my socks the same way. The military does the same thing.