I attended an interview, at there the interviewer asked me a question that how can we sort the MySQL result without using ORDER BY clause in PHP?
Is possible?
If the answer is yes then how?
I attended an interview, at there the interviewer asked me a question that how
Share
One possibility would be to load the values into an array in PHP and then use some sorting algorithm in PHP to sort the array. This sometimes lets you use more complicated sorting algorithms than the MySQL offers you.