Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible sort bug? #1495

Closed
huashan opened this issue Jan 14, 2016 · 0 comments
Closed

possible sort bug? #1495

huashan opened this issue Jan 14, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@huashan
Copy link

huashan commented Jan 14, 2016

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?

@arunsrinivasan arunsrinivasan added this to the v1.9.8 milestone Jan 19, 2016
@arunsrinivasan arunsrinivasan self-assigned this Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants