input: Write a python function to sort a list of dictionaries by a specified field.
  assert sort_dicts_by_field([{'name': 'John', 'age': 25}, {'name': 'Jane', 'age': 22}], 'age') == [{'name': 'Jane', 'age': 22}, {'name': 'John', 'age': 25}]
  assert sort_dicts_by_field([{'name': 'John', 'age': 25}, {'name': 'Jane', 'age': 22}], 'name') == [{'name': 'Jane', 'age': 22}, {'name': 'John', 'age': 25}]
  assert sort_dicts_by_field([{'title': 'B', 'year': 2000}, {'title': 'A', 'year': 1999}], 'title') == [{'title': 'A', 'year': 1999}, {'title': 'B', 'year': 2000}]
output: def sort_dicts_by_field(list_of_dicts, field):
      return sorted(list_of_dicts, key=lambda x: x[field])