[datatable-help] possible sort bug?

Huashan Chen chenhuashan at gmail.com
Fri Jan 15 03:39:27 CET 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, ]

# However, this gives unsorted result
dt[id %in% smp, ]

Is this a bug or by design?




--
View this message in context: http://r.789695.n4.nabble.com/possible-sort-bug-tp4716440.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list