From: Christopher Swasey Date: 2008-03-03T08:00:23+09:00 Subject: Re: Building your own string sorting method On 3/2/08, Joseph L. Casale wrote: > I am trying to find examples of this to help me but can't seem to locate any on the web. Anyone know of any online examples? I know ruby has a built in method for sorting an array, but it's part of a tutorial... A simple example would be a natural order comparison ("a20" sorting before "a120"). A bit of googling turned up Alan Davies' String#natcmp implementation: http://sourcefrog.net/projects/natsort/natcmp.rb Christopher