fix for order by discountCode