Hi,
It will require some custom code in your email "preload".
When you edit an email in the HikaShop backend (HikaShop business required), you have three parts (html, text, preload).
The preload is the PHP code which generate the content data for the html/text parts.
In that preload code, you will find that :
$cartProducts[] = $cartProduct;
}
$templates['PRODUCT_LINE'] = $cartProducts;
You need to insert the "$cartProduct" in the "$cartProducts" array but with the product code as key. So after the addition of all products in the array, you can sort the array by the array key (which will be the product code).
Regards,