How do I sort class instances in the list based on the length of the pool?
Example: Current value in dictionary: {"Metal":[['A', 20, 50, 'Wide']], "Wood":[
['B', 50, 20, 'Thin'], ['C', 30, 30, 'Wide']]
Sorted value in dictionary: {"Metal":[['A', 20, 50, 'Wide']], "Wood":[['C', 30, 30, 'Wide'],
['B', 50, 20, 'Thin']]
class PoolSet:
    def __init__ (self, ownerId, owner)
        self._ownerId = owner
        self._pools = {"Metal":[],"Wood":[]}
    #example of appending the Pool object into list based on the dictionary key
    self._pools["Metal"].append(Pool(label, length, width, grip))
    def sort(self):
       ????
class Pool:
    def __init__(self, label, length, width, grip):
    @property
    def label(self):
        return self._label
    @property
    def length(self):
        return self._length
 
    