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

Re: Repo browser numerical sort

From: Gerasimov, Ivan <Ivan.Gerasimov_at_transas.com>
Date: 2006-05-10 15:10:55 CEST

Hi, Stefan!

Please see the attached file for the patch to the comparing routine.

>> It's a bit trickier than just adding NORM_IGNORECASE flag to the
>> CompareString's parameters.

> I hope it's not too tricky :)

Not at all :-)
The only tricky thing had to be done was to handle file names, which are same if compared case insensitively. If only the IGNORECASE flag was added, the result might look ugly - look at the screenshot in Repo_WrongSort.png.

So for this special case, case sensitive comparing is still used. Thus, files with the same names (in case insensitive sense) are sorted case sensitively, like on the screenshot Repo_CorrectSort.png.

Ivan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org

Repo_WrongSort.PNG
Repo_CorrectSort.PNG
Received on Wed May 10 15:36:49 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.