Explorar el Código

#812 set fixed ascending sort order

g.krsteski hace 11 años
padre
commit
c012b6c153
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      php-pimf/app/Vanilla/DataMapper/Fortune.php

+ 1 - 1
php-pimf/app/Vanilla/DataMapper/Fortune.php

@@ -10,7 +10,7 @@ class Fortune extends Base
    */
   public function getAll()
   {
-    $sth = $this->pdo->prepare('SELECT * FROM Fortune ORDER BY Fortune.message');
+    $sth = $this->pdo->prepare('SELECT * FROM Fortune ORDER BY Fortune.message ASC');
     $sth->execute();
 
     return $sth->fetchAll(\PDO::FETCH_ASSOC);