Il GROUP BY ti impedisce l'ordinamento, dovresti provare usando un ORDER BY su due campi, piuttosto che un GROUP BY insieme all'ORDER BY