sorting a vector by ascending order in r