Frederik Eaton <address@hidden> writes:
> $ sort -k 1,1R -k 3n
> foo 1
> foo 2
> foo 3
> bar 1
> bar 2
> bar 3
> baz 1
> baz 2
> baz 3
OK, now I see. Thanks. You want to sort via a random permutation of
the keys, BUT you also want identical keys to sort together. This
combination cannot be done simply by adding a separate "permute"
program that doesn't know about keys.