On Sun, 05 Nov 2006 18:01:47 -0000, Davide Santachiara  
<[EMAIL PROTECTED]> wrote:

> Hello everybody,
>
> A couple of days ago my friend (80 years old) Adelchi Moscardini came to  
> my
> place asking for help concerning a simple sorting procedure. He has a  
> file
> containing the name of around 5000 people which he has to sort in  
> ascendent
> order. However he discovered that:
>
> "de angelis"
>
> came after
>
> "degola"
>
> Which is not correct. So I made some tests and I discovered that the  
> problem
> seems due to a Minerva bug. In fact if you try
>
> PRINT "de angelis">"degola"
>
> You get 0 on SMSQ/E (correct) and 1 on Minerva (1.97).
>
> My question is whether there is a smart way to overcome this problem  
> without
> having to convert the program for SMSQ/E.
>

Hmm you are right - all versions of QDOS and Minerva appear to give the  
result 1 for

PRINT ' '>'s'

Based on the character table, this is incorrect.
However, for coercion purposes, for some reason the character order  
appears to be different:

0123456789A...Za...z followed by the punctuation symbols.

I presume this is to assist with sorting words.

Now is smsq/e correct?  Yes I guess that 'he is' should appear before  
'head'
I wonder when this was changed...

-- 
Rich Mellor
RWAP Services
URL:http://www.rwapsoftware.co.uk
URL:http://www.rwapservices.co.uk

--> Get 36 Chances on the Massive £100m EuroMillions Draw Jackpot this  
Friday for £5 - http://www.playlotto.org.uk

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to