Alphabetically sort port names in "show" output

This commit is contained in:
Clifford Wolf 2014-09-19 11:13:10 +02:00
parent f56b92818b
commit f7bb8f244b

View 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)