Sort in decreasing order

Report a typo

Sort the array containing the "Seven Wonders of the World" in descending order, and display the result in the output.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                let wondersOfWorld = ["Taj Mahal", "Great Wall of China", "Colosseum", "Chichen Itza", "Machu Picchu", "Christ the Redeemer", "Petra"];
              
                wondersOfWorld.reverse();
              
                wondersOfWorld.sort();
              
                console.log(wondersOfWorld);
              
___

Create a free account to access the full topic