Browse Source

slag the sorting by mysql

Gjero Krsteski 11 years ago
parent
commit
a285297159
1 changed files with 2 additions and 2 deletions
  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);
   }
 }
- 
+