modified controller to sort products by name