From 24bf5cfde3f4ab39e3748bfc82f1480a5ded8318 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 7 Dec 2011 02:00:35 +0000 Subject: [PATCH] * adjust the order by of projects. --- module/project/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index e79b9e54bc..c76f743c62 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -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'); }