Skip to content

possible sort bug? #1495

@huashan

Description

@huashan
dt = data.table(id=1:30, nn = paste0('A', 1:30))
smp = sample(30, size =10)

#  data is sorted as expected 
aa = dt$id %in% smp
dt[aa, ]

# unordered result
dt[id %in% smp, ]

Is this a bug or by design?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions