fixed ordering in get-foreign-instances
authorDrew Crampsie <drewc@tech.coop>
Mon, 19 Dec 2005 16:51:54 +0000 (08:51 -0800)
committerDrew Crampsie <drewc@tech.coop>
Mon, 19 Dec 2005 16:51:54 +0000 (08:51 -0800)
darcs-hash:20051219165154-5417e-11183a98de30f565f87cd1ddbcc4e64ef13dc034.gz

src/slot-presentations.lisp

index 89492aa..188db91 100644 (file)
@@ -301,7 +301,7 @@ Calendar.setup({
 
 (defmethod get-foreign-instances ((slot has-many-slot-presentation) instance)
   (sort (slot-value instance (slot-name slot)) #'<  
-       :key #'(lambda (x) (funcall (car (list-keys instance)) x))))
+       :key #'(lambda (x) (funcall (car (list-keys x)) x))))
 
 (defmethod lol::presentation-slot-value ((slot has-many-slot-presentation) instance)
   (get-foreign-instances slot instance))