[Rd] "Human-style" sort() of alphanum strings?
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Jan 6 00:48:52 CET 2010
See mixedsort in gtools. Also on http://gsubfn.googlecode.com see
mixsort example in the section starting ### more examples
On Tue, Jan 5, 2010 at 6:34 PM, Henrik Bengtsson <hb at stat.berkeley.edu> wrote:
> I know it is fairly easy to implement (though not always well
> defined), but is there an existing sort function out there that takes
> alphanum strings and sort them in a "human" fashion? For example,
> instead of:
>
> z1.doc z10.doc z100.doc z101.doc z11.doc z2.doc
>
> it should out put:
>
> z1.doc z2.doc z10.doc z11.doc z100.doc z101.doc
>
> (from http://www.davekoelle.com/alphanum.html).
>
> /Henrik
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
More information about the R-devel
mailing list