From: Mason Kelsey Date: 2009-09-28T04:57:47+09:00 Subject: Re: Push and Pop on a Priority Queue appears to change nature of Array --0021cc022d0e355ed1047494982d Content-Type: text/plain; charset=ISO-8859-1 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][0y[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 wrote: > On Sun, Sep 27, 2009 at 1:36 AM, John W Higgins wrote: > > > On Sat, Sep 26, 2009 at 10:38 PM, Mason Kelsey > >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. > --0021cc022d0e355ed1047494982d--