» Thu Jun 18, 2015 4:10 pm
If you use MWSE, then you can dynamically loop (go through) all items or all items of a certain type (e.g. ingredients) in the player's inventory, including any mod added ones. You can also check each item's properties such as value, weight and name (match it to certain words if you want), allowing for some sorting opportunities based on that. Apparently, there are ways to dynamically get an ingredient's effects as well (a working method is probably to cause a dummy invisible NPC to Equip a copy of the ingredient, then checking what effects it is now under), allowing for easy, globally-supported automatic sorting based on that (effects), if you wish.
You need to be familiar with scripting and MWSE to make it, though, of course.
Doing this without MWSE takes like 40 times the amount of code (no kidding, a long script probably split to multiple scripts because it's too long) and is less flexible. Don't really see the point of writing these kinds of stuff without MWSE these days, it seems to pretty much work fine for everyone.