Explorar o código

#812 set fixed ascending sort order

g.krsteski %!s(int64=11) %!d(string=hai) anos
pai
achega
c012b6c153
Modificáronse 1 ficheiros con 1 adicións e 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);