fixed ordering in get-foreign-instances
[clinton/lisp-on-lines.git] / src / slot-presentations.lisp
index 02fb818..188db91 100644 (file)
@@ -300,7 +300,8 @@ Calendar.setup({
                       
 
 (defmethod get-foreign-instances ((slot has-many-slot-presentation) instance)
-  (slot-value instance (slot-name slot)))
+  (sort (slot-value instance (slot-name slot)) #'<  
+       :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))