From: Todd Benson Date: 2008-03-13T07:33:16+09:00 Subject: Re: sort array by some text On Wed, Mar 12, 2008 at 1:56 PM, 7stud -- wrote: > Ma Fe wrote: > > well I dont know where in array i have .txt files but its sure that > > there is just one and i want to put it at first place of array... > > > > a.select {|i| i =~ /\..txt$/} > > That doesn't work. > > > b = a.partition {|i| i =~ /\.txt$/} > > Neither does that. Yes, I said all this in the next post. Todd