add sorting for the inventory dropdown list