def sort_by(self, field, asc=True):
self._sortby = SortbyField(field, asc)<EOL>return self<EOL>
Add a sortby field to the query

- **field** - the name of the field to sort by
- **asc** - when `True`, sorting will be done in asceding order