matrix_gen.sh: Fix output order