From: Paul Mckibbin Date: 2008-03-25T11:12:48+09:00 Subject: Re: Find.find sorting: files before directories Adam Boyle wrote: > The desired output would sort sub-folders before files when traversing If output is the only requirement for sort order, why not just have two arrays, one for files and one for directories? You can then .sort.uniq the directory listing and the files separately and output them at the end of the traversal. Mac -- Posted via http://www.ruby-forum.com/.