[Rd] "Human-style" sort() of alphanum strings?

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Tue, 05 Jan 2010 15:34:49 -0800

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).


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 05 Jan 2010 - 23:37:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Jan 2010 - 02:00:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive