I don’t know if it’s possible. I’ve tried looking everywhere for an answer, but nothing.
const points = ["Apple - 40", "Orange - 80", "Lemon - 140"];
points.sort(function(a, b){return b-a});
I tried doing this, however it didn’t do anything.
New contributor
c4l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.