Open Journal Systems  3.3.0
Seboettg\Collection\Collections Class Reference

Static Public Member Functions

static sort (ArrayList &$list, Comparator $comparator)
 

Detailed Description

Definition at line 12 of file Collections.php.

Member Function Documentation

◆ sort()

static Seboettg\Collection\Collections::sort ( ArrayList $list,
Comparator  $comparator 
)
static

Sorts the specified list according to the order induced by the specified comparator. All elements in the list must be mutually comparable.

Parameters
ArrayList$list
Comparator$comparator
Returns
ArrayList

Definition at line 22 of file Collections.php.

References Seboettg\Collection\ToArrayInterface\toArray().

Referenced by Seboettg\Collection\Test\CollectionsTest\testSort(), and Seboettg\Collection\Test\CollectionsTest\testSortCustomOrder().


The documentation for this class was generated from the following file: