From: Paul Mckibbin Date: 2008-03-13T05:42:22+09:00 Subject: Re: sort array by some text 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... Do you want to sort the array, or just make sure that element is the first one? If the former case, and speed is an issue, you can just swap the first element with it which should reduce time of execution. Of course, I have no empirical evidence of this, but thought that this question might reduce if that is the case. Mac -- Posted via http://www.ruby-forum.com/.