소스 검색

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