()
| 158 | } |
| 159 | |
| 160 | getSort() { |
| 161 | if (!this.has('sort')) return {}; |
| 162 | // Currently only supporting sorting by a single field. |
| 163 | const valueString = this.getString('sort'); |
| 164 | const [field, direction] = valueString.split(':'); |
| 165 | return { field, direction }; |
| 166 | } |
| 167 | |
| 168 | hasSort() { |
| 169 | return this.has('sort'); |
no test coverage detected