[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Makes sort create random order
From: |
Paul Eggert |
Subject: |
Re: [PATCH] Makes sort create random order |
Date: |
Tue, 01 Feb 2005 13:30:01 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
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.