* adjust the order by of projects.

This commit is contained in:
wangchunsheng
2011-12-07 02:00:35 +00:00
parent f1985cdaed
commit 24bf5cfde3

View File

@@ -271,7 +271,7 @@ class projectModel extends model
->andWhere('t2.iscat')->eq(0)
->beginIF($status == 'undone')->andWhere('t2.status')->ne('done')->fi()
->beginIF($status != 'all' and $status != 'undone')->andWhere('status')->in($status)->fi()
->orderBy('status, code')
->orderBy('status, id desc')
->beginIF($limit)->limit($limit)->fi()
->fetchAll('id');
}
@@ -281,7 +281,7 @@ class projectModel extends model
->beginIF($status == 'undone')->andWhere('status')->ne('done')->fi()
->beginIF($status != 'all' and $status != 'undone')->andWhere('status')->in($status)->fi()
->andWhere('deleted')->eq(0)
->orderBy('status, code')
->orderBy('status, id')
->beginIF($limit)->limit($limit)->fi()
->fetchAll('id');
}