Skip to content

[R-Forge #5613] order and base::order give different results #478

@arunsrinivasan

Description

@arunsrinivasan

Submitted by: Christian Wolf; Assigned to: Nobody; R-Forge link

This is with revision 1263.

library(data.table)
my.dt <- data.table(a=c("$","€","+",0,1,"a","A"))
my.dt[base::order(a)]
#    a
#1: $
#2: €
#3: +
#4: 0
#5: 1
#6: a
#7: A

my.dt[order(a)]
#    a
#1: $
#2: +
#3: 0
#4: 1
#5: A
#6: a
#7: €

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions