Below given is the image of the code that was run in the console and the corresponding output is also shown.
While applying Sorting in Arrays in JS, how the 010 is converted to 8 and placed at last? whereas as per the rules it should come at the top of the sorted list.