From: "list. rb" Date: 2007-06-28T12:31:11+09:00 Subject: Re: Array Problem, sort Array ------=_Part_45937_25561121.1183001473950 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e"].uniq.sort array = ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e"].uniq.sort puts array.join("WOOT!\n") On 6/27/07, Cool Wong wrote: > > [code] > Array = ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e"] > [/code] > > How can i sort the array data??? > > [result] > Array = ["a", "b", "c", "d", "e"] > [/result] > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_45937_25561121.1183001473950--