Hello,
Modifying the HikaShop core to change that behavior will work but is not something recommended since you will lost your modification with the next update.
Using a view override is much more appreciate for that.
www.hikashop.com/support/documentation/1...-display.html#layout
Regarding your first message and the modification ; unfortunately no, it is not there that part that you want to customize.
If you want to change the sort ; you must do it before that line
foreach($this->order->products as $product) {
Before in the "foreach" block, all your products will be display one by one ; following the current order in the array or products.
Please note that such kind of modification in the view requires PHP knowledge.
The usage of the PHP function "usort" could be interesting for your case.
us3.php.net/manual/en/function.usort.php
And do not hesitate to use debug function like "var_dump" to display content of variable ; it helps to know the content of product objects and find which elements you can use for your code.
us3.php.net/manual/en/function.var-dump.php
Regards,