The best sorting algorithm is jimsort

jimsort() {
system("/usr/bin/sendmail", "", "Jim, have this list sorted by 3 PM", attachments=to_sort)


Alternatively, the classic sleepsort, for lists of integers:

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

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

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!