-- Query 20-2: with sort
SELECT
    comprend.numfacture,
    SUM(comprend.qte) AS 'nb conso'
FROM
    comprend
GROUP BY comprend.numfacture
ORDER BY SUM(comprend.qte) DESC, comprend.numfacture;
