The best sorting algorithm is jimsort

jimsort() {
system("/usr/bin/sendmail", "jim@business.company", "Jim, have this list sorted by 3 PM", attachments=to_sort)
}

Follow

Alternatively, the classic sleepsort, for lists of integers:

sleepsort() {
for n in $*
do
( sleep $n && echo "$n" ) &
done
}

@sir
Should work for all positive reals right? Well, upto the level of accuracy sleep has.

@sir which is basically a way to offload the sorting to the kernel's scheduler implementation

Sign in to participate in the conversation
Mastodon

cmpwn.com is a private Mastodon instance for friends of SirCmpwn.