def METHOD_NAME(self, values):
    """Sort the values in-place based on the connectors in the network."""
    for level in self:
        for wire1, wire2 in level:
            if values[wire1] > values[wire2]:
                values[wire1], values[wire2] = values[wire2], values[wire1]