Binary Heap Sorter's Sock Sorting Challenges

Challenge 1: Sort 5 Socks from 0 to 5

Sort Me!
1
2
3
4
5
Challenge 2: Sort Socks in Reverse Order

Warning: Binary Heap Sorter's Sock Sorting Challenges are highly addictive and may lead to sock-tyranny