Sort list output alphabetically - pee - Pee a password manager;Pee - because yo… | |
git clone git://vernunftzentrum.de/pee.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit c95023b2fdc87ba95dc2a68f8a8aa4e31968d38e | |
parent dfac95894f1ebd1d65322a31e5f0051ceb66109b | |
Author: Christian Kellermann <[email protected]> | |
Date: Thu, 21 Apr 2016 14:57:21 +0200 | |
Sort list output alphabetically | |
Diffstat: | |
pee.scm | 7 ++++--- | |
1 file changed, 4 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/pee.scm b/pee.scm | |
@@ -337,9 +337,10 @@ | |
".*") | |
'i 'utf8)) | |
(accounts | |
- (filter (lambda (k) | |
- (irregex-match regex k)) | |
- (db-keys db)))) | |
+ (sort (filter (lambda (k) | |
+ (irregex-match regex k)) | |
+ (db-keys db)) | |
+ string<=))) | |
(when (null? accounts) | |
(print "Error: No entry for " account " found.") | |
(exit 1)) |