I have a python dictionary with values as list of integers. I want to sort it in descending order based on the length of the values which is list
_dict = {
'owner_1': [320, 203, 123, 32, 923, 12398],
'owner_2': [239, 90, 3423, 234, 3994, 93294, 923849, 939, 312, 2341, 93,
9244, 294, 939532, 9284, 9113, 34, 98934, 9293, 83],
'owner_3': [2399, 934, 8231, 921338, 9394, 9023, 92, 911, 934, 983912,
9219, 239, 9021092, 9294]
}
The output should be like
_dict = {
'owner_2': [239, 90, 3423, 234, 3994, 93294, 923849, 939, 312, 2341, 93,
9244, 294, 939532, 9284, 9113, 34, 98934, 9293, 83],
'owner_3': [2399, 934, 8231, 921338, 9394, 9023, 92, 911, 934, 983912,
9219, 239, 9021092, 9294],
'owner_1': [320, 203, 123, 32, 923, 12398]
}