From: Devin Mullins Date: 2006-12-21T07:21:15+09:00 Subject: Re: tricky sort for happy visitors of Paris johan556@gmail.com wrote: > It is of course very similar to the previously proposed solutions, but > is more general in that it sorts strings with several numbers in them, > treating each number "numerically" (one extreme example could be > IP-numbers). What about this? arr.sort_by {|s| s.scan(/\d+/).map {|n| n.to_i } } Devin