From 49ce463aaa5330aa6e77e1ec5a67097d3f869d61 Mon Sep 17 00:00:00 2001 From: Sebastian Ovide Date: Sun, 10 Jan 2021 15:09:51 +0000 Subject: [PATCH] sorting sources I've did a small bash script that retrieve the sources from gnc-fq-dump and try to find one source that has the specific stock. At that point I've noticed that the sources returned by Finance::Quote have always a different order. Just wondering if it is done in that way intentionally (?) --- libgnucash/quotes/gnc-fq-dump.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/quotes/gnc-fq-dump.in b/libgnucash/quotes/gnc-fq-dump.in index 6f11f8d82b..9fe4c53754 100755 --- a/libgnucash/quotes/gnc-fq-dump.in +++ b/libgnucash/quotes/gnc-fq-dump.in @@ -167,7 +167,7 @@ my $q = Finance::Quote->new; $q->timeout(60); if ($#ARGV < 1) { - my @sources = $q->sources(); + my @sources = sort $q->sources(); printf "\nUsage: $0 [-v] [ ...]\n\n"; printf "-v: verbose\n"; printf "Available sources are: \n %s\n\n", join(' ', @sources);