I have a table of products who have prices, discount values and final prices. Different products can have the same discount values. I want to order by them by the discount value but if 2 of them have the same discount value I want them to be random in the ranking. This way I can show my client top 10 best deals of the products. But for example if there are 15 products and 13 of them have 0 discount value, I want different products to came everytime. Is there a way to do that?
Aucun commentaire:
Enregistrer un commentaire