make the phpgw Version-0_9_16-branch HEAD

This commit is contained in:
Ralf Becker
2003-08-28 14:31:11 +00:00
parent f76c6eedd7
commit b8557e49d9
984 changed files with 23863 additions and 36043 deletions

View File

@@ -36,9 +36,11 @@
* @param $fl Field list (in order of importance)
*/
function arfsort( $a, $fl )
function arfsort( $a, $fl, $_sort='ASC' )
{
$GLOBALS['__ARFSORT_LIST__'] = $fl;
$this->sort=$_sort;
if (is_array($a))
{
@@ -55,7 +57,14 @@
{
foreach( $GLOBALS['__ARFSORT_LIST__'] as $f )
{
$strc = strcmp( $a[$f], $b[$f] );
if($this->sort == 'ASC')
{
$strc = strcmp( $a[$f], $b[$f] );
}
else
{
$strc = strcmp( $b[$f], $a[$f] );
}
if ( $strc != 0 )
{
return $strc;