Sort your socks by the number of holes.
Sort your socks by the number of holes, and then by the number of colors.
Sort your socks by the number of holes, and then by the number of colors, and then by the number of stains.
Why? Because it's just so much fun to count things!
Learn more about Radix SortSort your socks by size, then by color, then by material.
Why? Because who cares, that's why.
You'll never get it done, but at least you'll have fun trying.
Watch a video tutorial on QuickSortSort your socks by color, then by size, then by hole count.
Because who needs socks, really?
Just sort them into buckets and call it a day.
Read the Bucket Sort manifesto