From: Patrick May Date: 2004-08-02T05:29:13+09:00 Subject: Re: [RCR] natcmp.rb added to string class Hello, On Sunday, August 1, 2004, at 03:56 AM, Michael Neumann wrote: > Hm, I think it's good to have this as an external library. This could > then extend both String and Array classes. E.g. > > require 'natsort' > > ["a10", "a2"].sort {|a,b| a.natcmp(b) } > # or > ["a10", "a2"].natsort The only reason I think that this would be better as a standard library, instead of being directly on String and Array, is that it would be easier to maintain the code. From a user point of view, I'd like those functions to just be on String. Cheers, Patrick