瀏覽代碼

#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);