This is why I am rubbish at these problems, I forget that .sort is expensive!
.sort
I get it entirely now and thanks for taking the time to give such a detailed explanation!
No worries, and thanks for the question!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is why I am rubbish at these problems, I forget that
.sort
is expensive!I get it entirely now and thanks for taking the time to give such a detailed explanation!
No worries, and thanks for the question!