From: Peter Hug Date: 2008-03-11T17:43:37+09:00 Subject: Ordered Collection If class X has a method <=>(aX), I can sort an Array containing instances of X using Array.sort!. What I really would like is an array that is always ordered. IOW, I want the object to be inserted at the correct location inside the array when the object is added to the array. Is there an efficient way to do this? Pete -- Posted via http://www.ruby-forum.com/.