Ad
  • Custom User Avatar

    -- sort results by area ascending, then volume ascending, then width ascending, then height ascending

    you are not doing that in your current solution. note that in ORDER BY , the order in which you write the different sorting criteria matters