I have a character array
cf <- c("V440","V457","V116","V327","V446","V108",
"V155","V217","V120","V51","V477")
I would like to sort it in descending order so that I will have an output like this:
V51
V108
V116
V120
V155
V217
V327
V440
V446
V457
V477
I have tried sort.list()
like this
cf[sort.list(cf)]
and got this answer:
[1] "V108" "V116" "V120" "V155" "V217" "V327" "V440" "V446" "V457" "V477" "V51"
and also tried order()
and got same result.
Can someone help me please