From: jake kaiden Date: 2011-12-18T03:44:03+09:00 Subject: Re: Writing My Own Sorting Method (New to Ruby) 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/.