Overview

Packages

  • Util

Classes

  • Horde_Array
  • Horde_Array_Sort_Helper
  • Horde_Domhtml
  • Horde_String
  • Horde_Util
  • Horde_Variables
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Array_Sort_Helper

Helper class for sorting arrays on arbitrary criteria for usort/uasort.

Copyright 2003-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Package: Util
Category: Horde
License: LGPL 2.1
Author: Marko Djukic marko@oblo.com
Author: Jan Schneider jan@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Array/Sort/Helper.php
Methods summary
public
# compare( array $a, array $b )

Compare two associative arrays by the array key defined in self::$key.

Compare two associative arrays by the array key defined in self::$key.

Parameters

$a
$b
public TODO
# reverseCompare( scalar $a, scalar $b )

Compare, in reverse order, two associative arrays by the array key defined in self::$key.

Compare, in reverse order, two associative arrays by the array key defined in self::$key.

Parameters

$a
TODO
$b
TODO

Returns

TODO
public TODO
# compareKeys( scalar $a, scalar $b )

Compare array keys case insensitively for uksort.

Compare array keys case insensitively for uksort.

Parameters

$a
TODO
$b
TODO

Returns

TODO
public TODO
# reverseCompareKeys( scalar $a, scalar $b )

Compare, in reverse order, array keys case insensitively for uksort.

Compare, in reverse order, array keys case insensitively for uksort.

Parameters

$a
TODO
$b
TODO

Returns

TODO
Properties summary
public string $key

The array key to sort by.

The array key to sort by.

#
API documentation generated by ApiGen