diff options
Diffstat (limited to 'protected/models/Verein.php')
| -rw-r--r-- | protected/models/Verein.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protected/models/Verein.php b/protected/models/Verein.php index c5b6b4b..00d34b7 100644 --- a/protected/models/Verein.php +++ b/protected/models/Verein.php @@ -123,6 +123,7 @@ class Verein extends CActiveRecord //$criteria->compare('startzeit','< '.$nowPlus); //$criteria->compare("endzeit"," <= ".$now,'AND'); $criteria->condition = 'published = 1'; + $criteria->order = "name ASC"; return new CActiveDataProvider($this, array( 'criteria'=>$criteria, )); @@ -139,6 +140,9 @@ class Verein extends CActiveRecord 'published'=>array( 'condition'=>'published = 1', ), + 'sorted'=>array( + 'order'=>'name ASC', + ), ); } }
\ No newline at end of file |
