Chaos Sorting: The Art of Ruining Order

We're not really sure what this algorithm does, but it sounds like it should do something.

Sorts the socks into a neat pile, but then just randomly rearranges everything.

Side effects may include:

Want to see how it works? Check out some examples

Or, if you're feeling adventurous, try sort a sock for yourself.

Don't worry, we won't judge you when your socks are all over the floor.