Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Were you not able to before? ls | grep foo | sort is hardly something people normally read the man page for.


This isn't the way I'd sort ls output by date or whatever field. I'd use `ls -l --sort=date` which I guess is what the GP meant with having every tool do their own sorting by field.

In nushell one can just do `ls | sort-by size`


Yes, that is what I mean.

I also like that nushell's table oriented approach displays the column names, and you just use those names for the `sort` command or `where` command etc.


Ah, fair enough. I misunderstood the parent.


Now sort by filesize


File size or file length ?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: