@AdaSimion, please file a bug report including your sample survey.
In the meantime, a workaround would be to place this script in the source of every group description. It will reposition the array rows according to the sequential sub-question codes.
Code:
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){// Loop through the questions
$('.array-flexible-row').each(function(i){var qID = $(this).attr('id').replace(/question/,'');var thisQuestion = $('#question'+qID);// Loop through the sub-question codesvar i;for(i =1; i <5; i++){var thisRow = $('tr[id^="javatbd"][id$="X'+qID+'SQ00'+i+'"]');// Reposition the corresponding array row
$('table.subquestion-list tbody:eq(0)', thisQuestion).append(thisRow);// Fix the row class
$(thisRow).removeClass('ls-even, ls-odd');if(i %2==0){
$(thisRow).addClass('ls-even ');}else{
$(thisRow).addClass('ls-odd ');}}});});</script>