Re: svn list - sorting (natural sort)
From: Ryan Schmidt <subversion-2004_at_ryandesign.com>
Date: 2005-02-06 18:59:27 CET
On 06.02.2005, at 00:46, allan juul wrote:
> is there a way to tweak the sort order of a "svn list URL" ?
I think the "Unix way" would be to pipe the output of "svn list URL" to
The man page for "sort" didn't hint at a way to get it to do
#!/usr/local/bin/php
$lines = array();
usort($lines, 'strnatcmp');
echo implode($lines, '');
?>
This doesn't have "sort"'s nice ability to specify which
You could undoubtedly write a similar script in Perl or Ruby or C or
Ways to do this in Perl, Ruby and C are available here:
http://sourcefrog.net/projects/natsort/
(Yes, SourceFrog, not SourceForge.)
---------------------------------------------------------------------
|
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.