Answer the question
In order to leave comments, you need to log in
How to randomly sort records based on the first sort?
I select records from the database, I need to sort them so that the records are sorted by date, and if the date is the same, then by chance. Something like this:SELECT * FROM `news` ORDER BY `date`, rand()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question