In the code of functions 'order' and 'sort.list' in R 3.5.0 alpha (in 
https://svn.r-project.org/R/branches/R-3-5-branch/src/library/base/R/sort.R), 
in "fastpass, take advantage of ALTREP metadata", there is "try the reverse 
since that's easy too...". If it succeeds, ties are reordered, violating 
stability of sorting.

Example:
x <- sort(c(1, 1, 3))
x  # 1 1 3
sort.list(x, decreasing=TRUE)  # should be 3 1 2

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to