[eluser]Jamongkad[/eluser]
[quote author="obiron2" date="1183727715"]You have two choices.
The first would be to use ksort or usort to sort the data (look it up, there is enough on this board and the interweb to make it work, or the better way would be to sort the results as part of the SQL query.
Code:
Select * from Blogfile where blogger = 'Joe Smith' order by entrydate DESC.
The DESC bit says sort descending.
The more manipulation you can do at SQL level, the less you have to muck around with in your controller or your method properties (that should set the cat amongst the pigeons...)[/quote]
I totally agree with you with the data manipulation on the SQL level.
Thanks man I tried googling the topic but couldn't find any(I guess I just keyed in the wrong search words) The code work with a little Active Record magic.