MetaModels\Attribute\IAttribute::sortIds PHP Method

sortIds() public method

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.
return string[] The sorted array.
    public function sortIds($idList, $strDirection);