Helper method to sort array values by string length with usort().
string $a First string.:
string $b Second string.:
int
public static function compareLength($a, $b) { return strlen($a) - strlen($b); }