From f7bb8f244beff135aa2ef6c771bece45ce240c5d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 19 Sep 2014 11:13:10 +0200 Subject: [PATCH] Alphabetically sort port names in "show" output --- passes/cmds/show.cc | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2