Inventory sorting fixed