R语言对矩阵按某一列排序时间:2022-09-16 01:45:08 [plain] view plain copy a <- c(5,4,3,2,1) b <- c(1,2,3,4,5) c <- cbind(a,b) [plain] view plain copy c[order(c[,1]),] #按第一列递增排序