> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/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/perl6-rosettacode/programming_tasks/u/unix/ls.md).

# Ls

There is a `dir` builtin command which returns a list of IO::Path objects. We stringify them all with a hyperoperator before sorting the strings.

```perl
.say for sort ~«dir
```
