Re: Nat_sort problems

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 11 Aug 2003 02:07:43 +0100 (08/11/03 11:07:43)
, Pete Lomax <petelomax at blueyonder.co.uk> wrote:

>
>
> On Sat,  9 Aug 2003 12:09:03 +0000, Tony Steward
> <tsteward at dodo.com.au> wrote:
>
>> Hello all,
>> When I use nat_sort on the following sequence My program crashes with 
>> this error
>>
>> C:\EUPHORIA\ExInclude\\\\nat_sort.e:171 in function nat_compare() 
>> type_check failure, x2num is 1234567890 Below is the actual data order 
>> contains.
>>
>> order = {"104/RING",
>> 		"123456789012345",
> ^ there lies the root.
> Change the definition of x1num and x2num to atom, it works fine.
> That's just a quick fix, though:

Changing it to an atom doesn't always work. Sure it no longer crashes, but 
it doesn't aways sort correctly either.

For example, "123456789012345" and "123456789012399" sort to the same 
location.

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu