From: Collin VanDyck Date: 2007-11-07T09:20:04+09:00 Subject: Re: Sort and a multiline block On Nov 6, 6:42 pm, Raymond O'Connor wrote: > I'm having the problem using > > Ruby 1.8.5 with Mac OS X 10.4.10 > Ruby 1.8.6 with Leopard > > The interesting thing is when I run the commands on irb, I get the > correct results, but when I run them through Textmate, the result is > always sorted ascending. > -- > Posted viahttp://www.ruby-forum.com/. I'm on Leopard, and this program: #!/usr/bin/env ruby result = [3, 7, 4, 1, 8, 2, 8, 9].sort do |a, b| b <=> a end p result Run from within TextMate gives me [9, 8, 8, 7, 4, 3, 2, 1] I think that you've probably got something else going on in your program. As someone else said, post a short program in its entirety that will illustrate what you're seeing.