I have a tab-delimited file with three columns like this:joe W 4bob A 1ana F 1roy J 3sam S 0don R 2tim L 0cyb M 0I want to sort this file by decreasing values in the third column, but to break ties I do not want to use some other column to do so (i.e. not use the first column to sort rows with the same entry in the third column).Instead, I want rows with the same third column entries to either preserve the original order, or be sorted randomly.Is there a way to do this using the sort command in unix?
How to sort by column and break ties randomly
sort