Interesting thread, somehow missed it the 1st time. There's a little bit of a collector in everyone of us... until it gets boring and u wanna throw the whole damn storage out of the window! lol
My ore/mineral tab starts with alloys, then pickable stones (iron lead nitre etc), and ends with the 338 stuff (caperium vestum sitt) down at the bottom. Keyword: "arranged into groups by frequency".
Horizontally it's like this (left to right): 1) unrefined ore 2) the same ore refined 3) unrefined mineral 4) the same mineral refined (i'm using the oldschool "big icons" view, so 4 icons in a row).
Tried it many different ways, finally settled with that one cause no need to scroll up and down for each stack when u arrive from a mining run and empty all those different extractors - yellow, green and red. Same general logic applies to crafting as well - usually each item requires ores from the same frequency group.
If i sell some ore i leave 1gr as a placeholder.
If i get something more than 1 stack it goes away (special ore boxes area... but it's a whole different story, i better won't go into this here

).