Write a Python function to sort the given list of strings using the length of the strings instead of alphabetically.
def sortStringByLength(string_list):
    string_list.sort(key = lambda x:len(x)) 
    return string_list