aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-20 19:44:24 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-03-20 19:44:24 +0100
commit89ff917d6ef607892e02b9e5bf7f354bbeb7407a (patch)
treebeeb87dce803f3fa1e234445116612e1dc8929ba
parent135d72ac87f20a164c3e29de186dfa642d3b650b (diff)
Sort identities when listing.
-rwxr-xr-xicevault4
1 files changed, 2 insertions, 2 deletions
diff --git a/icevault b/icevault
index 800f8a2..43b8e50 100755
--- a/icevault
+++ b/icevault
@@ -296,7 +296,7 @@ sub complete($;$) {
}
my %matches = map {( $_ => 1 )} @matches;
- return keys %matches;
+ return sort keys %matches;
}
# Redact passwords, unless $CONFIG{'show-passwords'} is set.
@@ -898,7 +898,7 @@ elsif ($command eq 'ls') {
my $delim = $CONFIG{zero} ? "\0" : "\n";
my %matches = map {($_ => 1)} @matches;
- print $LOCALE->encode($_), $delim foreach keys %matches;
+ print $LOCALE->encode($_), $delim foreach sort keys %matches;
}
else {