R 按照某一列的值重新排序dataframe

library(data.table)
setorder(setDT(Spot_manifest)[, barcode := colnames(count)], barcode)
library(data.table)
setorder(setDT(DF)[, index := factor(index, levels = ord)], index)
原文地址:https://www.cnblogs.com/shanyr/p/14095520.html