From: Clifford Wolf Date: Fri, 19 Sep 2014 09:13:10 +0000 (+0200) Subject: Alphabetically sort port names in "show" output X-Git-Tag: yosys-0.4~115 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7bb8f244beff135aa2ef6c771bece45ce240c5d;p=yosys.git Alphabetically sort port names in "show" output --- diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 0451ebc29..2218eded2 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -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)