From 8278f06953f5339646e5ff98900321f1525c0a21 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 3 Mar 2011 01:30:08 +0100 Subject: [PATCH] systemadm: display dependencies sorted --- src/systemadm.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" : ","; -- 2.39.5