summaryrefslogtreecommitdiff
path: root/lib/App
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-18 19:39:33 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-18 19:39:33 +0200
commit8f5e8b3bbaf23600d2450f8a694190134773f9e3 (patch)
tree19af689df0c0752fc21f8fde68bc3106984f5510 /lib/App
parent9205edeba3664444a2a296f030e7bd30eace5120 (diff)
raps2 list: Sort by account name
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/Raps2.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/App/Raps2.pm b/lib/App/Raps2.pm
index c416592..6acac7f 100644
--- a/lib/App/Raps2.pm
+++ b/lib/App/Raps2.pm
@@ -376,8 +376,9 @@ Lists all saved passwords and their logins and urls
sub cmd_list {
my ($self) = @_;
+ my @files = read_dir($self->{xdg_data});
- for my $file (read_dir($self->{xdg_data})) {
+ for my $file (sort @files) {
my %key = $self->file_to_hash($self->{xdg_data} . "/${file}");
$self->ui->list(
['Account', $file],