Alphabetically sort port names in "show" output
authorClifford Wolf <clifford@clifford.at>
Fri, 19 Sep 2014 09:13:10 +0000 (11:13 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 19 Sep 2014 09:13:10 +0000 (11:13 +0200)
passes/cmds/show.cc

index 0451ebc2992ff14717d46c780592d4ad7ff03bfa..2218eded29a893a0b4b0b56f5aeb96ef521bd65a 100644 (file)
@@ -355,6 +355,9 @@ struct ShowWorker
                                        out_ports.push_back(conn.first);
                        }
 
+                       std::sort(in_ports.begin(), in_ports.end(), RTLIL::sort_by_id_str());
+                       std::sort(out_ports.begin(), out_ports.end(), RTLIL::sort_by_id_str());
+
                        std::string label_string = "{{";
 
                        for (auto &p : in_ports)