virt-df: Display domains in sorted order.
authorRichard Jones <rjones@redhat.com>
Fri, 14 May 2010 18:42:48 +0000 (19:42 +0100)
committerRichard Jones <rjones@redhat.com>
Mon, 17 May 2010 10:13:32 +0000 (11:13 +0100)
(cherry picked from commit 5d5565ca24b95719461b0c0aebdb0651dd2671ca)

tools/virt-df

index b997691..4aa1063 100755 (executable)
@@ -163,7 +163,7 @@ if (@ARGV == 0) {
     # https://bugzilla.redhat.com/show_bug.cgi?id=538041
     @doms = grep { $_->get_id () != 0 } @doms;
 
-    my @domnames = map { $_->get_name () } @doms;
+    my @domnames = sort (map { $_->get_name () } @doms);
 
     if (@domnames) {
         print_title ();