Again, TBag. I don't know if it will do collapsible groups, but it will group everything by category (and if something isn't categorized in a way you like you can edit individual items and change which categories bind where), and autostacks stuff as it's made aware of the items (though it requires an item entering/leaving the bag to trigger this process).