[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: Gerasimov, Ivan <Ivan.Gerasimov_at_transas.com>
Date: 2006-04-12 15:02:04 CEST

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.

Sincerely yours,
Ivan Gerasimov

---------------------------------------------------------------------
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:02:31 2006

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