- updated product controller to handle sort