Josh,

This also means that I have to change the way I construct the sorting
mechanism for the Priority Queue.   So instead of
pq=PQueue.new(proc{|x,y| x[0][0<y[0][0]]})
pq.push([[12], ["n1"], [123456780], [123456708]])
I have to use:
pq=PQueue.new(proc{|x,y| x[0]>y[0]})
pq.push([12, "n1", 123456780, 123456708])

Also I found that I had the "<" wrong.  Should be ">" for an ascending sort.

Thanks again for your help.  I'm making progress.  But, geez, is it slow!

No Sam

On Sun, Sep 27, 2009 at 4:34 AM, Josh Cheek <josh.cheek / gmail.com> wrote:

> On Sun, Sep 27, 2009 at 1:36 AM, John W Higgins <wishdev / gmail.com> wrote:
>
> > On Sat, Sep 26, 2009 at 10:38 PM, Mason Kelsey <masonkelsey / gmail.com
> > >wrote:
> > So now that I've spent wayyyyy too many words myself - the bottom line is
> > that you don't want to wrap each element inside an array - get rid of the
> > []'s around each element and you'll be in business.
> >
> > John
> >
>
> I enjoyed your post :)
>
> Sadly, If I had put more emphasis on the very last sentence of
> http://aspn.activestate.com/ASPN/Mail/Message/ruby-talk/3754953 , might
> have
> saved you the trouble.
>