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.
It's work. I had similar problem, but then realize, that i should't create new array, sort and return it (what is the good practice for sorting array). You must sort input array itself only.
I started this kata from TS. And in TS explanation for this kata hasn't table with numbers to match issuer. I couldn't understand how find this rule until open this kata on JS. It is unacceptable has differrent explanation for different languages.
It's a spread syntax, than allowed us to find max age in array of age.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax