def obj_dict_dictize(obj_dict, context, sort_key=(lambda x: x)):
 result_list = []
 for (key, obj) in obj_dict.items():
  result_list.append(table_dictize(obj, context))
 return sorted(result_list, key=sort_key)

def obj_dict_dictize ( obj_dict , context , sort_key = ( lambda x : x ) ) : result_list = [ ] for ( key , obj ) in obj_dict . items ( ) : result_list . append ( table_dictize ( obj , context ) ) return sorted ( result_list , key = sort_key )
get a dict whose values are model objects and represent it as a list of dicts .