Items within bags/jugs etc. will not be classified as the item in question but as "category: container". Which leads to problems with sorting. If you want to sort food into a fridge you can't do it, while it is in a jug or bottle or bag, because it will sort it to the container stuff.
pack of cigarettes should be a "drug" not container.

Bag is a container. In category view or AIM you should see both your food (cracklins in this case) under "food" category, and container with it under "containers" category. So you can decide if you want to put just the food or the bag with food into a fridge.
The only problem I see with this system is that it also applies to liquids. Noone in their right mind would want to spill a drink into food storage zone, which could be easily done by "putting" it there (instead of a container with that liquid).
It should still be in the category of the item inside. Else you have to unpack it all to put it in the right stash (or fridge). Because now, I need to manually put the full bottles of drinks into the fridge myself instead of it automatically doing it. The way it is now, the sorting is now more or less semi useless for food and drinks, because it won't get into the place it is supposed to.
annoying thing because instead of tab select the whole food category I have to carefully select every food item in the container category
which item that's inside the container should get the priority for the category
if you have a backpack with all of your stuff, what's its category
This is the reason it is how it is. It is because i do not have an answer and i don't think "just make the bag the category of the item inside" is the correct answer
Also this is a duplicate of #41388
So additional discussion should go there
Also this is a duplicate of #41388
So additional discussion should go there
actually no. but okey... they talk about the problem of container and contaiment being in different categories. I am talking about the sorting issue, because the container is the category and not its content...
at its core they are the same issue: containers do not share the category of their contents
I don't understand why this issue was closed. It looks like a very distinct issue from #41388 - the bug there had to do with multi-drop. The bug in this issue has to do with sorting items, specifically (as I interpret it), auto-sorting loot piles.
To reproduce:
O, o to auto-sort - all food and drink goes into the "containers" zoneZones after sorting - food and drink did not go into the appropriate zones:


Most helpful comment
It should still be in the category of the item inside. Else you have to unpack it all to put it in the right stash (or fridge). Because now, I need to manually put the full bottles of drinks into the fridge myself instead of it automatically doing it. The way it is now, the sorting is now more or less semi useless for food and drinks, because it won't get into the place it is supposed to.