I was looking at rank() and I came across:

...
"first" = sort.list(sort.list(xx)), ...

line 32 of rank.r [1]

sort.list(x) returns the indices of the values of x in ascending (by
default) order. So sort.list(sort.list(x)) returns the same list.

So, what am I missing here?

-Tyler

[1] view-source:http://svn.r-project.org/R/trunk/src/library/base/R/rank.R

	[[alternative HTML version deleted]]

