I do not know how to sort the date. can you give me the simplest code to do that, I am doing foreach loop then it outputs the results then i want it to sort the posts via date(latest-oldest)
here is my code:
$users = DB::getInstance()->query("SELECT * FROM users");
if($users->count()) {
foreach($users->results() as $users) {
