diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-20 19:44:24 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-20 19:44:24 +0100 |
commit | 89ff917d6ef607892e02b9e5bf7f354bbeb7407a (patch) | |
tree | beeb87dce803f3fa1e234445116612e1dc8929ba | |
parent | 135d72ac87f20a164c3e29de186dfa642d3b650b (diff) |
Sort identities when listing.
-rwxr-xr-x | icevault | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |