| @@ 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. |
|
| @@ 226-233 (lines=8) @@ | ||
| 223 | * |
|
| 224 | * @return $this Chaining |
|
| 225 | */ |
|
| 226 | public function orderBy($fieldName, $order = 'ASC') |
|
| 227 | { |
|
| 228 | if (in_array($fieldName, self::$fieldIDs)) { |
|
| 229 | $this->orderBy = array($fieldName, $order); |
|
| 230 | } |
|
| 231 | ||
| 232 | return $this; |
|
| 233 | } |
|
| 234 | ||
| 235 | /** |
|
| 236 | * Add sorting to entity identifiers. |
|