>>>>> "blake" == blake  <[EMAIL PROTECTED]> writes:

    blake> I am using cmucl 19a and possibly don't understand the use of sort.  It 
    blake> appears to eliminate most of the list when using the #'< operator, e.g.
    blake> * (setf a '(15.61d0 15.13d0 14.47d0 14.47d0 13.75d0 11.93d0))

    blake> (15.61d0 15.13d0 14.47d0 14.47d0 13.75d0 11.93d0)
    blake> * (sort a #'<)

    blake> (11.93d0 13.75d0 14.47d0 14.47d0 15.13d0 15.61d0)
    blake> * a

    blake> (15.61d0)
    blake> *

    blake> Using #'> leaves the complete list.  Have I misunderstood how to use 
    blake> sort or #'<?

Read the CLHS entry for sort:
http://www.lispworks.com/reference/HyperSpec/Body/f_sort_.htm

You will find that sort is destructive so you really need to do
something like

(setf a (sort a #'<))

Ray


Reply via email to