DataObjects/Images.php
authorEdward <edward@roojs.com>
Thu, 9 Oct 2014 07:25:33 +0000 (15:25 +0800)
committerEdward <edward@roojs.com>
Thu, 9 Oct 2014 07:25:33 +0000 (15:25 +0800)
DataObjects/Images.php

index 7687cfe..ecbb381 100644 (file)
@@ -363,6 +363,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         if (!empty($mime_like)) {
             $c->whereAdd("Images.mimetype LIKE '". $c->escape($mime_like) ."'");
         }
+        $c->orderBy('created DESC');
 
         return $c->fetchAll();
     }