From: Zbigniew Jędrzejewski-Szmek Date: Thu, 3 Mar 2011 00:30:08 +0000 (+0100) Subject: systemadm: display dependencies sorted X-Git-Tag: v38~206^2~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8278f06953f5339646e5ff98900321f1525c0a21;p=systemd systemadm: display dependencies sorted --- diff --git a/src/systemadm.vala b/src/systemadm.vala index c893da01..088ba26b 100644 --- a/src/systemadm.vala +++ b/src/systemadm.vala @@ -458,6 +458,10 @@ public class MainWindow : Window { } public string make_dependency_string(string? prefix, string word, string[] dependencies) { + Gee.Collection sorted = new Gee.TreeSet(); + foreach (string i in dependencies) + sorted.add(i); + bool first = true; string r; @@ -466,7 +470,7 @@ public class MainWindow : Window { else r = prefix; - foreach (string i in dependencies) { + foreach (string i in sorted) { if (r != "") r += first ? "\n" : ",";