Olympus-OM
[Top] [All Lists]

[OM] Re: OT Computers and numbers

Subject: [OM] Re: OT Computers and numbers
From: Nils Frohberg <nilsf@xxxxxxx>
Date: Sat, 10 Feb 2007 20:24:45 +0100
On Sun, Feb 11, 2007 at 07:14:50PM +1300, Brian Swale wrote:
> 
> One of the  irritating things about computers that Mr  Gateway and his
> minions  never had  the wit  to  fix was  the handling  of numbers  in
> ordered lists.
> 
> For example, if you make a set  of file directories numbered from 1 to
> 33, the MS system cannot keep them in order.
> 
> Getting up into the series, they will go 28  29  3  30  31  32  33.

The sorting  algorithm looks  at the  first character  of each  file and
sorts the list according to that. Then,  it takes the 2nd char and sorts
those that had the same 1st char by that value. And so on..

> Note  the "3"  in the  middle of  the tens  series. And so  it goes. I
> wonder  if this  is  why the  Olympus file  numbering  system puts  an
> underscore in front?
> _28  _29  _30 etc

Nope, that won't help. Leading 0s will work though:

01
02
03
10
11
12
17
23
32
42
...

-- 
The Moon is Waning Crescent (46% of Full)

==============================================
List usage info:     http://www.zuikoholic.com
List nannies:        olympusadmin@xxxxxxxxxx
==============================================

<Prev in Thread] Current Thread [Next in Thread>
Sponsored by Tako
Impressum | Datenschutz