Introduced compareLength function to sort array by string lenght