Hi I am trying to sort two values a and b in ascending order and to get a_out and b_out from both of them
a= c("MN, OP, AB")
b = c("MN, O P, A B")
a_out = "AB,MN,OP"
b_out = "A B,MN,O P"
I have tried with the below statement but unable to get desired output
a_out = sort(a)
b_out = sort(b)
Thanks in advance