By default, Elegantt groups your cards by Labels and then sorts them by Start date.

alt

For the cards that have several labels, we only take into account the first one (the leftmost label in the card edit popin).
Also, Elegantt gives default names to unnamed labels rather than ignoring them in the Gantt chart. Those unnamed labels are then sorted first, followed by the named ones in alphabetical order.