code: def sort_list_of_dicts(lst_of_dct, keys, reverse=False, **sort_args):
      if type(keys) != list:
          keys = [keys]
      lst_of_dct.sort(key=lambda x: [((False, x[key]) if key in x else (True, 0)) for key in keys], reverse=reverse, **sort_args)
      return lst_of_dct