| @@ 151-158 (lines=8) @@ | ||
| 148 | * |
|
| 149 | * @return $this Chaining |
|
| 150 | */ |
|
| 151 | public function orderBy($fieldName, $order = 'ASC') |
|
| 152 | { |
|
| 153 | if (in_array($fieldName, self::$fieldIDs)) { |
|
| 154 | $this->orderBy = array($fieldName, $order); |
|
| 155 | } |
|
| 156 | ||
| 157 | return $this; |
|
| 158 | } |
|
| 159 | ||
| 160 | /** |
|
| 161 | * Add sorting to entity identifiers. |
|
| @@ 99-106 (lines=8) @@ | ||
| 96 | * |
|
| 97 | * @return $this Chaining |
|
| 98 | */ |
|
| 99 | public function orderBy($fieldName, $order = 'ASC') |
|
| 100 | { |
|
| 101 | if (in_array($fieldName, static::$fieldIDs)) { |
|
| 102 | $this->orderBy = array($fieldName, $order); |
|
| 103 | } |
|
| 104 | ||
| 105 | return $this; |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * Set query results limitation. |
|