Today, a netizen on 51js posted this question. I originally thought it was to arrange the content in alphabetical order in reverse order. Because I have read an article in alphabetical order before, I thought that it should not be difficult in reverse order. After checking the information, it was quick. Problem solved.
]
But after reading the reply, it turns out that the original poster No, please describe the problem clearly. His original intention is to arrange the contents of the list in reverse order, that is, abcef becomes fecba.
I thought it was difficult to solve at first, but suddenly I remembered that the array has a reverse() function (arrange the contents of the array in reverse order), and the problem suddenly became very simple.
If you need to introduce external Js, you need to refresh to execute ]