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.
You could initialize lowest and secondLowest each to Int.max and avoid the need to check whether they're 0 every time through your loop.
This potentially sorts the array twice. Even if the compiler magically optimizes the second sort away, you're still sorting the whole array, which is much more work than you need to do.