RE: Re: svn list - sorting (natural sort)
From: Gregory Smith <greg_at_siliconoptix.com>
Date: 2005-02-07 16:01:36 CET
At http://sourceforge.net/projects/numacomp
.. there is a 'numacomp' (numerically aware compare), which is in the
Unlike many other solutions, this one is formally well behaved:
- works on strings with multiple numeric subfields
- strings never compare equal unless they are identical
- transitive and commutative (i.e. A < B and B < C => A<C,
The last one is important, since without these properties, you can get
in a sort.
_____
From: Ryan Schmidt [mailto:subversion-2004@ryandesign.com]
On 06.02.2005, at 23:44, Hakan Koseoglu wrote:
Instead of the desired naturally-sorted output:
module/v_1
module/v_3
module/v_20
module/v_112
GNU sort has -n option to sort numerically. Would that help?
Not that I can see, because as the man page says, it only sorts on an
---------------------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.