Преглед на файлове

#812 set fixed ascending sort order

g.krsteski преди 11 години
родител
ревизия
c012b6c153
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);