From: Robert Klemme Date: 2009-06-09T16:19:09+09:00 Subject: Re: How to sort array ascending, except zero ? 2009/6/9 Rha7 : > Paganoni wrote: >> >> Hello, I need to sort >> [1,4,2,0,8,9] to [1,2,4,8,9,0] >> >> A simple ascending sort but with the zero values to the end >> >> I really don't see how to do >> >> Thanks for your help > > Delegate the FixNum class > > http://www.pastie.org/505312 Another good idea! However, you can save yourself a bit of typing: http://www.pastie.org/505471 Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/