I was having some troubles editing the test cases, I think they are working now though. To the few people who's solutions are now marked invalid with a change in test cases, the example test cases now reflect the actual ones much better.
The sorting function must be able to handle ranks above 10, which means a simple string sort will incorrectly end up with ['1', '10', '2'...]
I'm not sure why this is marked as incorrect, I just ran it through the new set of tests and it passes all of them.
Maybe it is an issue with how codewars handles updated test cases
I'm not sure why this is marked as incorrect, I just ran it through the new set of tests and it passes all of them.
Maybe it is an issue with how codewars handles updated test cases
I was having some troubles editing the test cases, I think they are working now though. To the few people who's solutions are now marked invalid with a change in test cases, the example test cases now reflect the actual ones much better.
The sorting function must be able to handle ranks above 10, which means a simple string sort will incorrectly end up with
['1', '10', '2'...]