From: tho_mica_l Date: 2008-01-26T19:54:56+09:00 Subject: Re: Making Change (#154) > >> I guess I should have said: is it that hard to call sort { |a,b| > >> b <=> a }? > > am i missing something? what's wrong with sort.reverse? apart from > > the fact that it's a whole lot faster ;-) > > I guess he hadn't run into Ruby yet. I think reversing an array/list is rather cheap (especially when the interpreter can use a built-in method coded in C) in comparison to interpreting a code snippet and performing a comparison for each element.