Create a Python function that sorts a list of strings alphabetically
[‘apple’,’orange’,’pear’]
def sort_strings(list_of_strings):
    sorted_list = sorted(list_of_strings, key=lambda str: str.lower())
    return sorted_list

result = sort_strings(['apple', 'orange', 'pear'])
print(result)