From: "Joseph L. Casale" Date: 2008-03-03T15:09: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 Hi Christopher and Daniel, You'll have to bear with me as I have just started learning Ruby and both examples seem a bit over my head as of yet. Is there anything more basic you know of? Thanks for being patient :) jlc