public function orderBy(string $column, string $direction = 'ASC', array $whiteList = [], string $default = 'name') : string
{
if (!\in_array($column, $whiteList)) {
$column = $default;
}
if ($direction !== 'ASC' && $direction !== 'DESC') {
$direction = 'ASC';
}
/*
In the future, we may need to switch-case this based on
$this->db->getDriver()
*/
return 'ORDER BY ' . $column . ' ' . $direction;
}