Not sure if you can make that happen with liquid. But you could always use a jquery and table filter and make that happen on the spot. Kind of a drag I know but this might help if you want your user to re-arrange de rows of the cart. I would suggest
Just take out the searcher and everything else you dont need. and give it some css. ;D GL
I don't need the customer to have control over the sorting of the cart. I am looking for a way to have each item ranked/sorted as it goes into the cart. In other words, after someone clicks the Add-To-Cart button the product.type of the item being added is compared to the previously added item/items product type(s) and moved above or below them according to the sort logic. Is there a way to do that?