It is necessary to make a sort for inventory.