Browse Source

slag the sorting by mysql

Gjero Krsteski 11 năm trước cách đây
mục cha
commit
a285297159
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);
   }
 }
- 
+