data-aggregator: fix alphabetic resulttype sorting

Depending on SQL-statement nesting, some scripts already correctly sorted
resulttypes alphabetically, but some sorted along the numeric ENUM value
behind the resulttype name.  This change explicitly converts the resulttype
to a string before sorting.

Change-Id: Ia18aa4e75b94a6a9f7bb125953bc85b86b3cbd6e
This commit is contained in:
Horst Schirmeier
2018-06-22 18:41:18 +02:00
parent 27b697200b
commit f5b34a962c
13 changed files with 19 additions and 12 deletions

View File

@ -44,6 +44,6 @@ JOIN result_GenericExperimentMessage r
ON r.pilot_id = g.pilot_id
WHERE $FILTER
GROUP BY s.variant_id, s.address, r.resulttype
ORDER BY s.address, r.resulttype
ORDER BY s.address, CONCAT(r.resulttype)
;
EOT