Skip to content

order() (PR#9039)

1 message · Brian Ripley

#
The issue here is rather that sort.list() does not implement complex 
vectors: order() uses sort.list() for speed if it has a single argument.

How sort() and order() collate complex numbers seems to be undocumented in 
R.  I was taught that they were unsorted, and there are several possible 
sort orders.  It seems the collation is as a (real, imaginary) pair.

This will be fixed for R 2.4.0: please consider a suitable donation to the 
R Foundation for the reduction in your annoyance.
On Wed, 28 Jun 2006, mh.smith at niwa.co.nz wrote:

            
How did you manage to miss all the injunctions not to report on obselete 
versions of R?