def sort(self, field, order=None):
        '''
        Sort this query.
        '''

        if 'sort' not in self._struct:
            self._struct['sort'] = []

        if not order:
            self._struct['sort'].append(field)
        else:
            self._struct['sort'].append({
                field: {
                    'order': order
                }
            })

        return self
dataset/ETHPy150Open Fizzadar/ElasticQuery/elasticquery/elasticquery.py/ElasticQuery.sort/original