Inventory page sorting stuff