src/mako/utility/Collection.php
public function sort(callable $comparator, bool $maintainIndexAssociation = true): bool
	{
		return $maintainIndexAssociation ? uasort($this->items, $comparator) : usort($this->items, $comparator);
	}
public function sort(callable $comparator, bool $maintainIndexAssociation = true): bool
	{
		return $maintainIndexAssociation ? uasort($this->items, $comparator) : usort($this->items, $comparator);
	}
public function sort ( callable $ comparator , bool $ maintainIndexAssociation = true ) : bool { return $ maintainIndexAssociation ? uasort ( $ this -> items , $ comparator ) : usort ( $ this -> items , $ comparator ) ; }
Sorts the collection using the specified comparator callable
and returns TRUE on success and FALSE on failure.

@param  callable $comparator               Comparator callable
@param  bool     $maintainIndexAssociation Maintain index association?
@return bool
Sorts the collection using the specified comparator callable and returns TRUE on success and FALSE on failure .