Alters the order in which the results should appear.
(self, *args)
| 349 | return clone |
| 350 | |
| 351 | def order_by(self, *args): |
| 352 | """Alters the order in which the results should appear.""" |
| 353 | clone = self._clone() |
| 354 | |
| 355 | for field in args: |
| 356 | clone.query.add_order_by(field) |
| 357 | |
| 358 | return clone |
| 359 | |
| 360 | def highlight(self, **kwargs): |
| 361 | """Adds highlighting to the results.""" |