input: Write a function in Python to sort a dictionary according to its values, in descending order.
  def sortDictionary(dictionary):
    sorted_list = sorted(dictionary.items(), key=lambda x: x[1], reverse=True)
    sorted_dictionary = dict(sorted_list)
    return sorted_dictionary
  assert sortDictionary({'apple': 2, 'banana': 3, 'mango': 1})=={'banana': 3, 'apple': 2, 'mango': 1}
  assert sortDictionary({'cat': 5, 'dog': 2, 'elephant': 7})=={'elephant': 7, 'cat': 5, 'dog': 2}
  assert sortDictionary({'carrot': 1, 'broccoli': 1, 'potato': 1})=={'carrot': 1, 'broccoli': 1, 'potato': 1}
  assert sortDictionary({})=={}
  assert sortDictionary({'a': 10, 'b': 10, 'c': 10})=={'a': 10, 'b': 10, 'c': 10}
output: def sortDictionary(dictionary):
    sorted_list = sorted(dictionary.items(), key=lambda x: x[1], reverse=True)
    sorted_dictionary = dict(sorted_list)
    return sorted_dictionary