Create SortByLength

It sorts the strings into string array by their length