From 8f5e8b3bbaf23600d2450f8a694190134773f9e3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 18 May 2011 19:39:33 +0200 Subject: raps2 list: Sort by account name --- lib/App/Raps2.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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], -- cgit v1.2.3