> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/s/sorting-algorithms/sleep_sort.md).

# Sleep sort

```ruby
ARGV.map{.to_i}.map{ |i|
    { Sys.sleep(i); say i }.fork
}.each{.wait}
```

#### Output:

```
% sidef test.sf 5 1 3 2 11 6 4
1
2
3
4
5
6
11
```
