Ascending order of dataframe values

I have developed this short code in R. I desire that the dataframe (LX) with 2 columns be arranged in ascending order of 1-10. Please see below the generated result as well as the expected result. Could someone please advise what I am doing wrong....

'''
LX <- data.frame(age = c("10-WNW", "0-N", "4-ESE", "1-NNE", "2-ENE", "3-E", "11-NNW", "4-ESE"), income = c( 25.2, 10.5, 11, 21.9, 44, 11.5, 45, 16))

print(LX)

foo <- LX
foo[order(foo$age), ]

"'

2 posts were merged into an existing topic: Sorting out a dataframe in ascending order

Please do not duplicate open topics