DataView: remove duplicate case handling

This commit is contained in:
Thomas Gelf 2014-06-17 12:46:41 +00:00
parent dab90d6c4a
commit 93e2f36fc8

View File

@ -224,6 +224,7 @@ public function dump()
public function sort($column = null, $order = null) public function sort($column = null, $order = null)
{ {
$sortRules = $this->getSortRules(); $sortRules = $this->getSortRules();
if ($sortRules !== null) { if ($sortRules !== null) {
if ($column === null) { if ($column === null) {
$sortColumns = reset($sortRules); $sortColumns = reset($sortRules);
@ -274,7 +275,7 @@ public function dump()
*/ */
public function order($column = null, $direction = null) public function order($column = null, $direction = null)
{ {
return $this->sort($column, $direction !== null ? strtoupper($direction) : null); return $this->sort($column, $direction);
} }
/** /**