Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
If
'180' < '90' === true
when sorting alphabetically '180' comes before '90', not what you wrote there.No, you have to sort the values (using their weights), not replace them, see the expected output, there is no replacement there.
Also read again the instructions about how to sort the numbers that have the same weight.
'9' comes before '90' as a string, the same way 'A' comes before 'AB'.
There's a problem. The result came when compared with '90' and '9'. It's like there's no strict rules why '90'should be ahead of '9' or '9' should be ahead of '90'. My code result came as two consequences.