Simple complex, no clue how hard it is to impliment. A button to sort cupboards so that it automatically stacks objects of the same type and does so by quality. Each item is auto-stacked by quality into the max, i.e meat x5. It's trivial, but annoying, to have to sift through your stacks of (anything, really) for quality. Especially if these items are all identical. Sort Cupboard button will sort the entire (cupboards only) selection leaving the highest quality at the top. It shouldn't mix quality with stacks that are averaged, like flour or cave dust.
On that note, maybe asking too much here, but a quality preference button. Crafting from one cupboard you can select an option to automatically start using the lowest or the highest quality material within.