I have a list of transactions by day, the transaction contains the following attributes:
Transaction(int transactionID,
DateTime transactionDate,
String shopId,
int productReference,
int quantity,
float price);
Having a list List<Transaction>, I want to extract top 100 selled products by shop.
So I need to group transactions by shopId then by productReference, then summing quantities than sorting from most selled to least.
Thanks you for your Help