Ver originalSELECT * FROM(SELECT SUM(unidades) AS total, fruta FROM frutas GROUP BY fruta) AS t1 ORDER BY total ASC