Quote:Original post by petemurray
At the moment, it is separating the components i.e
(split (list -2 20 100 -5 20))
Gives: (list (list 20 100 20) -5 -2)
Actually, it's:
(cons (list 20 100 20) (list -5 -2))
which is exactly the same, it's just Dr.Scheme's interpreter that confuses matter.
Now sort each part recursively and merge the outputs.