public function clearSorting()
{
$this->updating();
$dql = Strings::normalize($this->query->getDQL());
if (preg_match('~^(.+)\\s+(ORDER BY\\s+((?!FROM|WHERE|ORDER\\s+BY|GROUP\\sBY|JOIN).)*)\\z~si', $dql, $m)) {
$dql = $m[1];
}
$this->query->setDQL(trim($dql));
return $this;
}