[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn list - sorting (natural sort)

From: Ryan Schmidt <subversion-2004_at_ryandesign.com>
Date: 2005-02-06 23:23:42 CET

On 06.02.2005, at 19:10, Rob Shepherd wrote:

> Ryan Schmidt wrote:
>> I think the "Unix way" would be to pipe the output of "svn list URL"
>> to a separate sorting program.
>> The man page for "sort" didn't hint at a way to get it to do
>> natural-order sorting, so here's a PHP script you can pipe your
>> output through:
>
> unix sort will sort this as you wish by default
>
> svn list URL | sort

On the systems I have access to (Mac OS X, Gentoo, FreeBSD) the
built-in sort program produces this ASCII-sorted output:

module/v_1
module/v_112
module/v_20
module/v_3

Instead of the desired naturally-sorted output:

module/v_1
module/v_3
module/v_20
module/v_112

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 6 23:26:07 2005

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.