Hi Maurice.
I think you can get the result you want by changing line 133 of totara/question/field/compfromplan.class.php to read
ORDER BY comp.idnumber';
instead of
ORDER BY reviewdata.itemid';
I did a quick test and it seems to do what you want, but it needs some testing to be sure.
Nathan