Yesterday I had to spend some time trying to find a bug in my code and I found that data.table package sorts strings in a way a bit different from base. Is this
data.table
Well, I am not sure what the most efficient way is but you can do the following to reproduce the data.frame result.
dt[order(dt$cn)] cn 1: Ubuntu 2: USA 3: Uzbekistan