start of product sorting