From: Erik Veenstra Date: 2008-10-13T21:08:15+09:00 Subject: Re: Sorting help What about this one?: module Enumerable def sort_number_word_other sort_by do |x| x.to_s.scan(/\d+|\w+|[^\d\w]+/).collect do |s| [s.to_i, s] end end end end It handles comparisons of strings like "ruby-1.8.7.tar.gz" pretty well. It even knows how to sort [3, "2.1"] in "a way". > What is the best way to sort such an array of strings? "best way"? Depends on the problem domain. There's no generic answer. gegroet, Erik V.