Sort is a command-line program that allows standard input or specified text files to be sorted in various ways such as numerically or alphabetically, and then the result can be displayed in the terminal or sent to file.

learn more… | top users | synonyms

7
votes
4answers
2k views

Nautilus sorts the Name-column “mysteriously”. How can I change the collating sequence?

What I describe here is not about a problem with my Nautilus. (it is the default behavour) I understand why Nautilus sorts the Name-column (ascending) so that "6 cats" occuring before "10 dogs"... ...
6
votes
3answers
3k views

Can I view my files sorted by date?

Can I view my files sorted by date? I want to see my files sorted by date, I mean the first one the newest. I didn't find this option. Thanks in advance.
9
votes
7answers
3k views

How do I sort by human readable sizes numerically?

for example I have command that shows how much space folder takes du folder | sort -n it works great, however I would like to have human readable form du -h folder however if I do that than I ...
5
votes
1answer
1k views

How do I force folder view sort order to not ignore special characters?

I have many folders in my home directory that have names that begin with special characters such as _OLD_500GB_HD or !FolderIWantToSeeAtTheTop, but for some reason these folders are sorted according ...
2
votes
2answers
5k views

How to sort lines in a text file from the terminal?

I have to sort the GPA in a file for my class lab. The teacher uses putty, for those of us that chose to use Ubuntu in the class, we have no idea how to do the command for ascending sort and ...
1
vote
2answers
675 views

How to automatically sort files out?

I have many files in my external harddrive, so I want to automatically tell the computer to sort all my files into folders, by their size, extension, name and other variables. Is there any program ...