If I have a large DF (hundreds and hundreds) columns with different col_names randomly distributed alphabetically:
df.x <- data.frame(2:11, 1:10, rnorm(1
Why not just:
sort(colnames(df.x)) [1] "delta" "ID" "string"