Browse Source

#812 set fixed ascending sort order

g.krsteski 11 years ago
parent
commit
c012b6c153
1 changed files with 1 additions and 1 deletions
  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()
   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();
     $sth->execute();
 
 
     return $sth->fetchAll(\PDO::FETCH_ASSOC);
     return $sth->fetchAll(\PDO::FETCH_ASSOC);