say after using the Split
function we have an array of strings like so ArrStr = ("this","is","a","random","phrase")
what I want to achieve is this:
first,
ArrStr
is sorted by the string length of the array items, i.eArrStr = ("a","is","this","random","phrase")
since len("a") = 1, len("is") = 2 ...etcsecond,
ArrStr
then gets sorted again but this time alphabetically retaining the first sort by length, i.eArrStr = ("a","is","this","phrase","random")
,the string "phrase" took the place of the string "random" since it starts with "p" and we all know that the letter "p" comes before the letter "r" in the English language.
during the sorting process, the text is considered case insensitive
any efficient ideas on how to achieve that?