@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | { |
| 79 | 79 | if(!$this->iterator) |
| 80 | 80 | { |
| 81 | - $this->getIterator(); |
|
| 81 | + $this->getIterator(); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | if ($this->index < $this->count()) { |
@@ -107,10 +107,10 @@ discard block |
||
| 107 | 107 | public function orderBy($fieldName, $direction) |
| 108 | 108 | { |
| 109 | 109 | if($direction === Grid::SORT_ASC){ |
| 110 | - $this->src->sortBy($fieldName); |
|
| 110 | + $this->src->sortBy($fieldName); |
|
| 111 | 111 | } |
| 112 | 112 | else{ |
| 113 | - $this->src->sortByDesc($fieldName); |
|
| 113 | + $this->src->sortByDesc($fieldName); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $this; |
@@ -108,8 +108,7 @@ |
||
| 108 | 108 | { |
| 109 | 109 | if($direction === Grid::SORT_ASC){ |
| 110 | 110 | $this->src->sortBy($fieldName); |
| 111 | - } |
|
| 112 | - else{ |
|
| 111 | + } else{ |
|
| 113 | 112 | $this->src->sortByDesc($fieldName); |
| 114 | 113 | } |
| 115 | 114 | |