prima di vedere cos'è, postiamo delle query ordinate pls
se c'è ordine, è più facilecodice:SELECT CONCAT(MONTH(calendar.start), '/', YEAR(calendar.start)) As Periodo, count(calendar.id) as totevent, tb_odl.Odl_Desc AS Evento FROM calendar LEFT JOIN tb_odl ON calendar.id_odl = tb_odl.id LEFT JOIN tb_periodi ON Periodo = tb_periodi.periodo WHERE calendar.start <= DATE(NOW())+ INTERVAL 1 DAY GROUP By calendar.id_odl, MONTH(calendar.start) ORDER BY Periodo