I need to order by the name from the random results. My sql command:
SELECT * FROM oc_manufacturer ORDER BY RAND() ASC LIMIT 0,50
And it returns thhis array:
[0] => Array
(
[manufacturer_id] => 16
[name] => Azzaro
)
[1] => Array
(
[manufacturer_id] => 71
[name] => Sony
)
[2] => Array
(
[manufacturer_id] => 104
[name] => Casio
)
[3] => Array
(
[manufacturer_id] => 30
[name] => Jeepers Peepers
)
But i want to return first Azzaro, then Casio, then Jeepers Peepers, and Sony. I need to sort results by name from RAMDOM results. I tried sort arrays and some mysql commands but it is not worked.