Dashboard with a Gantt chart pulling from multiple boards - how do you organize the groups?

We have created a dashboard that pulls from 5 boards. On the dashboard we have a Gantt chart which includes all the groups in the boards. For some reason, the Gantt chart does not display the groups from the same board next to each other - is there a way to sort the groups on the Gantt chart correctly?