I love to take HackerRank challenges. Those are great to practice programming and improving your overall skills.
I do them quite often - just like ...
For further actions, you may consider blocking this person and/or reporting abuse
Your post was helpful, it helped me figure out this solution for PHP:
usort($unsorted, function($a, $b) {
$strlenA = strlen($a);
$strlenB = strlen($b);
if ($strlenA != $strlenB) {
return $strlenA - $strlenB;
} else {
return strcoll($a, $b);
}
});