From: Shashank Date Date: 2002-09-18T13:29:10+09:00 Subject: Re: A newbie question for using sort "Steve Peters" wrote in message news:oQRh9.1471 > If anyone can let me know what I'm doing wrong, I'd appreciate it. You are forgetting that Array#sort is not destructive. Try this: arr = ["a", "G", "b", "f"] bArr = arr.sort print "Sort #1\n" for atom in bArr print atom, "\n" end cArr = arr.sort { |x, y| y <=> x} print "\n\nSort #2\n" for atom in cArr print atom, "\n" end Does that work ? -- shanko