input: Write a function to sort a dictionary by its values.
  assert sort_dictionary_by_values({'a': 3, 'b': 1, 'c': 2}) == [('b', 1), ('c', 2), ('a', 3)]
  assert sort_dictionary_by_values({'apple': 10, 'banana': 5, 'cherry': 7}) == [('banana', 5), ('cherry', 7), ('apple', 10)]
  assert sort_dictionary_by_values({'x': 2, 'y': 3, 'z': 1}) == [('z', 1), ('x', 2), ('y', 3)]
output: def sort_dictionary_by_values(d):
      return sorted(d.items(), key=lambda item: item[1])