From 369644ecd4570ee1e6eb1f59295135f0ac067b5f Mon Sep 17 00:00:00 2001 From: Fritz Zaucker Date: Tue, 16 Mar 2021 10:08:29 +0100 Subject: [PATCH] Fix row/col order for none-square branching matrices --- lib/Agrammon/DataSource/DB.pm6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Agrammon/DataSource/DB.pm6 b/lib/Agrammon/DataSource/DB.pm6 index 00e9762c8..dc1114090 100644 --- a/lib/Agrammon/DataSource/DB.pm6 +++ b/lib/Agrammon/DataSource/DB.pm6 @@ -32,7 +32,8 @@ class Agrammon::DataSource::DB does Agrammon::DB { FROM data_new LEFT JOIN branches ON (data_id=branches_var) WHERE data_dataset=dataset_name2id($1,$2) AND data_var not like '%ignore' - ORDER BY data_instance, branches_data, data_var, data_val + -- order is important to get col/rows of branching right (see load/store branch data) + ORDER BY data_instance, branches_data, data_id, data_var, data_val STATEMENT my @rows = $results.arrays; my $dist-input = Agrammon::Inputs::Distribution.new(