O(n) Sorting Algorithm: Quantum Bogosort
mathnews.uwaterloo.ca
mathnews.uwaterloo.ca
http://dis.4chan.org/read/prog/1295544154
It essentially spawns a new thread for every item in the array, sleeps for an amount of time that scales with the item's value, and then prints out that item. So it's O(n + timeScale * $biggest_input)
Pretty funny / entertaining if taken lightly :P
EDIT: After thinking about it, you could do the insertion step in O(1) time if you use a linked list instead of an array. The part where insertion sort gets its log(n) factor is in scanning the list, which can take (on average) no less than log(n) time.
tantalor is correct in identifying this algorithm as pigeonhole sort.
[]http://en.wikipedia.org/wiki/Quantum_suicide_and_immortality