瀏覽代碼

slag the sorting by mysql

Gjero Krsteski 11 年之前
父節點
當前提交
a285297159
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      php-pimf/app/Vanilla/DataMapper/Fortune.php

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

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