[haiku-commits] Re: r40178 - haiku/trunk/src/apps/showimage

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 10 Jan 2011 19:23:56 +0100

Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> On Mon, Jan 10, 2011 at 11:49 AM, Humdinger <humdingerb@xxxxxxxxxxxxxx> 
> > wrote:
> > Nice! Thanks Ryan!
> > One little thing though: There seems to be something funny with the
> > sorting order when you've closed the Tracker window. If you have 
> > files
> > named 1 to 22, the order when you keep browsing with ALT+CursorDown
> > becomes: 1,10,11,12,13,14,15,16,17,18,19,2,20,21,22,3,4,5...
> That's probably because that's the lexicographic sorting order in
> which the entries are stored on disk; Tracker goes out of its way to
> resort those in a more "natural" way to take numbers and such into
> account the way you'd normally expect, hence the discrepancy.

See ImageFileNavigator.cpp line 348 - it should be relatively easy to 
use Tracker's private natural sorting in ShowImage as well, in case 
someone wants to look into it :-)

Bye,
   Axel.


Other related posts: