summaryrefslogtreecommitdiff
path: root/src/systemadm.vala
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2011-03-03 01:30:08 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2011-09-20 01:06:28 +0200
commit8278f06953f5339646e5ff98900321f1525c0a21 (patch)
treeca65bd359a00f03a19c4157c2627e99564eea254 /src/systemadm.vala
parent11216eb0bd5aab6b14af004fd2f24d423e3d356d (diff)
systemadm: display dependencies sorted
Diffstat (limited to 'src/systemadm.vala')
-rw-r--r--src/systemadm.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/systemadm.vala b/src/systemadm.vala
index c893da01da..088ba26be9 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<unowned string> sorted = new Gee.TreeSet<string>();
+ 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" : ",";