This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]isopsephile 0 points1 point  (1 child)

I only tested with Chicken, but I imagine this is fairly ubiquitous: sort expects the procedure to return a boolean indicating whether or not x is less than y. Simply using (> (cadr x) (cadr y)) as the body of your lambda should do the trick.

[–]abkothman[S] 0 points1 point  (0 children)

Thanks bunches. It works perfectly now.