input: Write a python function to sort a list of strings by their lengths.
  assert sortStringByLength(["apple", "pie", "banana", "kiwi", "strawberry"]) == ["pie", "kiwi", "apple", "banana", "strawberry"]
  assert sortStringByLength(["short", "tiny", "medium", "lengthy", "sizeable"]) == ["tiny", "short", "medium", "lengthy", "sizeable"]
  assert sortStringByLength(["a", "ab", "abc", "abcd", "abcde"]) == ["a", "ab", "abc", "abcd", "abcde"]
output: def sortStringByLength(strings):
      return sorted(strings, key=len)