Error comparing strings



Thanks,

That does the trick.  I was sorting a list and my own function concoction workaround was a lot slower.

Rich




 ------------Original Message------------
From: "Robert Dodier" <robert.dodier at gmail.com>
To: "Richard Hennessy" <rvh2007 at comcast.net>
Cc: "Maxima List" <maxima at math.utexas.edu>
Date: Sun, Sep-7-2008 2:49 PM
Subject: Re: [Maxima] Error comparing strings

On Sun, Sep 7, 2008 at 10:25 AM, Richard Hennessy <rvh2007 at comcast.net> wrote:

> (%i1) is("John">"Barry");
> Maxima encountered a Lisp error: Error in PROGN [or a callee]:

Well, that's a bug. A work-around is to call ordergreatp or orderlessp
for which all Maxima expressions are comparable.
e.g. ordergreatp("John", "Barry") => true.

The function "sort" orders stuff according to orderlessp by default.

Should be easy to make strings comparable by < <= >=  and > .
(Already = # equal and notequal are OK.)

best

Robert Dodier