Greetings again.
I'm having to make a simple roll your own number only sort
I'm trying to think of a scenario where
(apply 'max lst)
would require (equal)
in lieu of a (=)
I could end up with a infinite loop if = doesn't hold true
But could also end up with a error return with a > or < call later
if the fuzz factor is too large
(defun nw_nsort
(l f
/ c s e m r
) r nil)
(if (= m n
) ;if the number = the max/min of the remaining list (setq s
(cons n s
)) ;then add the number to the sorted list (setq r
(cons n r
)))) ;else add the number to the remaining list s) ;return the sorted list
(setq b
-10 e
50.5 x
nil)
(nw_nsort x '>)
The basis for this that I need access some of the values as
they are being sorted. I wouldn't recommend this for a large list.
Thanks! -David