The Intelligent Design Sort

To heck with bubble sort, selection sort, insertion sort, and all the rest. Yes, all of those algorithms were intelligently design, but none of them follow the precepts of Intelligent Design.

And, now, David Morgan-Mar gives us Intelligent Design Sort.

(found via Steve Jackson Games)

More like this

Here's some pseudo-code:

LIST ID_Sort(LIST list)
{if(list)//already sorted! Praise the sorter!
return(list);}

By Brian Thompson (not verified) on 23 May 2007 #permalink

Brian -- the best part of your pseudo code is that the return value is undefined if the list isn't already sorted! :)

-Rob

if(list)//already sorted

I'm _appaled_. This step is clearly questioning the perfection of the Sorter!