Sort:  

To simplify the computation, I just assigned zero value to potions since personally I have a lot still in store. Same goes with Merits and energy since my premise is that I'm only interested in cards. Hope that clarifies. :)