sorting products by order of their category