Subject: sort array by some text
From: Ma Fe <frytaz gmail.com>
Date: Wed, 12 Mar 2008 14:02:49 +0900
Hi, i have array with file names
a = ['one.jpg', 'two.txt', 'three.pdf']
how can i sort it that always first value will be *.txt file ?
Thanks, fryt
--
Posted via http://www.ruby-forum.com/.