Sort your socks with the most basic of algorithms, Heapsort!
Heapsort is like sorting socks in the dark, with only a faint hope that it'll work.
You know, it's not like Quicksort or Mergesort, which are just fancy-pants ways of getting it done.
No, no, no. Heapsort is like the college student who just uses a bunch of Post-It notes and hopes for the best.
Sort by height! Sort by color! Who cares? It's all just a mess, really.
Want to see how it works? Click on Heapsort/Heap Creation to learn more about the thrill-ride that is building a heap.
Or, if you're feeling extra fancy, check out Heapsort/Heap Extraction for the thrilling conclusion.