SELECT * FROM (SELECT TOP 5 producto, SUM(ventas) AS venta_total FROM ventas GROUP BY producto ORDER BY 2) ORDER BY campo_standard