public function sortIds($idList, $strDirection)
{
// Base implementation, do a simple sorting on given column.
$idList = $this->getMetaModel()->getServiceContainer()->getDatabase()->prepare(sprintf('SELECT id FROM %s WHERE id IN (%s) ORDER BY %s %s', $this->getMetaModel()->getTableName(), $this->parameterMask($idList), $this->getColName(), $strDirection))->execute($idList)->fetchEach('id');
return $idList;
}