summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-06-20 11:10:31 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-06-20 11:10:31 +0200
commita2a2b687867bdd9552931f6807dbbe154ab68ff3 (patch)
treeefe5e3cd930daca162d629e06c26b015921ee276
parent703d2c41f7f8551c3b295b551d93849140c09b42 (diff)
Vereine nach Namen sortiert
-rw-r--r--protected/models/Verein.php4
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