Sorting socks by pattern is not just a task, it's a mathematical challenge!
A special algorithm for those who don't care about patterns.