fixed bug that returned reverse sorted inventory items when a base was supplied