hi again -

  maybe this would work:

startarray = %w[abc abcdef abcd a abcde efgh def]

sortarray = startarray.sort{|x, y| x.length <=> y.length}

p sortarray

=> ["a", "abc", "def", "efgh", "abcd", "abcde", "abcdef"]


 - j

-- 
Posted via http://www.ruby-forum.com/.