fix sort netlist