If (for whatever reason) we don't want to have new types of holding devices that attract particular categories of stuff, the way spices automatically go into spice racks, what about adding the ability to craft "Thing Magnets"?
A rock magnet could be put into a bag to designate it the place for mining products to get placed automatically into inventory. It would take up a slot, but it would keep inventory nice and tidy.
There could be bean magnets, produce magnets, fruit magnets, gas magnets, and so on.
I know some people use search and don't organize their bags, and others pre-prepare their bags every so often by putting one bean in each slot of a bag and then harvesting mainly beans for a while. But the Thing Magnets would be nifty and would please a lot of people who like to be able to glance into a bag and see what is there all at once.
They should be hard and expensive to make, so that they'll be valuable.