\Horde_Array_Sort_Helper

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

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

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

Summary

Methods
Properties
Constants
compare()
reverseCompare()
compareKeys()
reverseCompareKeys()
$key
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$key

$key : string

The array key to sort by.

Type

string

Methods

compare()

compare(array  $a, array  $b) 

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

Parameters

array $a
array $b

reverseCompare()

reverseCompare(scalar  $a, scalar  $b) : \TODO

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

Parameters

scalar $a

TODO

scalar $b

TODO

Returns

\TODO

compareKeys()

compareKeys(scalar  $a, scalar  $b) : \TODO

Compare array keys case insensitively for uksort.

Parameters

scalar $a

TODO

scalar $b

TODO

Returns

\TODO

reverseCompareKeys()

reverseCompareKeys(scalar  $a, scalar  $b) : \TODO

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

Parameters

scalar $a

TODO

scalar $b

TODO

Returns

\TODO