From: gwtmp01@... Date: 2006-06-04T13:06:41+09:00 Subject: Re: Sorted list? On Jun 3, 2006, at 11:55 PM, James Edward Gray II wrote: > On Jun 3, 2006, at 9:15 PM, Victor Shepelev wrote: > >> BTW, I'm slightly surprized such a "fundamental" (?) thing is >> neither part >> of core, nor stdlib, nor some "common" extension. > > Oh but it is... ;) > > >> require "set" > => true > >> ordered = SortedSet.new([3, 1, 4, 0]) sort of This won't work if you want multiple occurrences of items. But thanks for pointing out SortedSet, I wasn't aware of it before. Gary Wright