How can I use GNU sort and uniq to have the most common occurrences on top instead of numerical or alphanumerical sorting? Example list.txt:
1
2
2
2
3
3
Since '2' occurs 3 times, should be on top, followed by '3' and '1' like this:
$ cat list.txt | "some sort/uniq magic combo"
2
3
1