mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
sort with revision too
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6636 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8a15728a84
commit
c40d10f686
1 changed files with 8 additions and 2 deletions
|
|
@ -10,10 +10,16 @@
|
|||
function _compare($a, $b)
|
||||
{
|
||||
if(!$a->date || !$b->date) return 0;
|
||||
return strcmp($a->date, $b->date) * -1;
|
||||
$res = strcmp($a->date, $b->date) * -1;
|
||||
if($res == 0)
|
||||
{
|
||||
if(!$a->revision || !$b->revision) return 0;
|
||||
else if($a->revision == $b->revision) return 0;
|
||||
else return ($a->revision > $b->revision)?-1:1;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
||||
class issuetrackerModel extends issuetracker {
|
||||
var $oSvn = null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue