[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: Lübbe Onken <l.onken_at_rac.de>
Date: 2006-04-11 09:02:46 CEST

Joakim Simonsson wrote:

> I think that optional numerical filename sorting would be a
> great thing in
> the repobrowser(maybe as the default sorting aswell).
> I am wondering if somebody else finds this useful?

Useful yes, but that feature doesn't come for free. You would need a parser
that intelligently detects which part of a string is numerical and then
apply numerical sorting to these bits, after having sorted 'by text' first.
Too much effort for just a little gain.
If you mix text and numbers like in your example, you would need another
sort/compare step for each change in the sequence. Something like v1.3.8,
v1.3.18 would be parsed into: string-number-string-number-string-number.

- Lübbe

  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Apr 11 09:03:13 2006

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