public function orderBy($Fields, $Direction = 'asc')
{
if (!$Fields) {
return $this;
}
if ($Direction && strtolower($Direction) != 'asc') {
$Direction = 'desc';
} else {
$Direction = 'asc';
}
$this->_OrderBys[] = $this->escapeIdentifier($Fields, true) . ' ' . $Direction;
return $this;
}