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

Re: Repobrowser - Numeric order filename sorting

From: Joakim Simonsson <nospam_at_joakims.com>
Date: 2006-04-12 15:39:44 CEST

I think I forgot to give you a thank you for implementing this.

Thanks!!!

På Wed, 12 Apr 2006 15:02:04 +0200, skrev Gerasimov, Ivan
<Ivan.Gerasimov@transas.com>:

> Hello, Joakim!
>
>> I haven't studied your function, so maybe it takes care of this
>> suggestion:
>> I think it would be a good idea to allow this:
>> v1m2b4
>> v1m2b6
>> v1m6b2
>> v1m30b4
>> v2m1b1
>
> The first version of the routine I've posted here wouldn't put such
> strings in the correct order, due to the problem mentioned by Hans-Emil.
>
> Well, your example would be sorted correctly. But v1m3b2, for example,
> would go after v1m30b4, even though it should be before.
>
> The second version of the routine, I've just posted, handles it properly.
> It does not simply skip same characters from the head, but also
> remembers the number from the tail of skipped head.
>

-- 
Joakim Simonsson
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Apr 12 15:40:13 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.