class_docstr: Sorting network class.
  
  From Wikipedia : A sorting network is an abstract mathematical model
  of a network of wires and comparator modules that is used to sort a
  sequence of numbers. Each comparator connects two wires and sort the
  values by outputting the smaller value to one wire, and a larger
  value to the other.
docstr: Sort the values in-place based on the connectors in the network.
docstr_tok: ["Sort","the","values","in-place","based","on","the","connectors","in","the","network","."]
code: def sort(self, values):
      """Sort the values in-place based on the connectors in the network."""
      for level in self:
          for wire1, wire2 in level.items():
              if values[wire1] > values[wire2]:
                  values[wire1], values[wire2] = (
                      values[wire2],
                      values[wire1],
                  )
  
file_path: deap/doc/code/tutorials/part_4/sortingnetwork.py
label_desc: Use image node_id 3 for calling the SortingNetwork obj's underlying member method code with example usage: obj.sort(values) without return types