From: "David B." Date: 2008-08-29T00:49:53+09:00 Subject: Order some files by time before display Hi everybody, I have write a short script that display each article of a folder: require 'find' result = [] @pattern = '*.html' Find.find('public/2008/') do |p| next unless File.file?(p) name = File.basename(p) result << p if File.fnmatch(@pattern, name) end a = '' result.length.times do |i| content = File.read(result[i]) a += '
' a += content a += '
' + File.ctime(result[i]).to_s + '
' a += '
' end a As you can see, it display some articles in a webpage. However, but I would like to order them by time (with File.ctime(result[i]) for instance) such as in blogs. If you see a sexy way to do so, that would be very helpful for me. Thanks, Dendicus -- Posted via http://www.ruby-forum.com/.