Arrang products by id.