Move to git-archive for zip support
[gitphp.git] / include / util.epochcmp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/*
 *  util.epochcmp.php
 *  gitphp: A PHP git repository browser
 *  Component: Utility - epoch comparison function
 *
 *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
 */
 
function epochcmp($a,$b)
{
        if ($a['epoch'] == $b['epoch'])
                return 0;
        return ($a['epoch'] < $b['epoch']) ? 1 : -1;
}
 
?>
 
comments