How do we output columns based on the count of customer and order products by alphabetical order?
Given the following table
Customer | Product
------------------------
James Jones | Shoes
James Jones | Top
Jay Smith | Bottom
Jones Jones | Shoes
Jones Jones | Top
Jones Jones | Bottom
Output
Customer | Product
------------------------
Jones Jones | Bottom
Jones Jones | Shoes
Jones Jones | Top
James Jones | Shoes
James Jones | Top
Jay Smith | Bottom
Where Jones Jones is shown first as he has the highest amount of products and products are displayed in alphabetical order. This is then repeated for other customers based on product count.