bogo-sort algorithm described in the Jargon File. PR: 21290 Submitted by: Peter Pentchev <roam@orbitel.bg>