MetaModels\Attribute\IAttribute::sortIds PHP Méthode

sortIds() public méthode

Sorts the given array list by field value in the given direction.
public sortIds ( string[] $idList, string $strDirection ) : string[]
$idList string[] A list of Ids from the MetaModel table.
$strDirection string The direction for sorting. either 'ASC' or 'DESC', as in plain SQL.
Résultat string[] The sorted array.
    public function sortIds($idList, $strDirection);