Simple question :
I want to use data.table::setorder on my DT, but I can not do this by group.
Is it possible ?
In this example, I order my whole DT :
DT = data.table(a=rep(c('C', 'A', 'D', 'B', 'E'), each = 4), b=sample(1:1000,20))
setorder(DT, b)
DT
But I want to keep a fixed.
Thanks !