@classmethod<EOL><INDENT>def order(cls, query, field, s):<DEDENT>
if s == '<STR_LIT>':<EOL><INDENT>query = query.order_by(asc(field))<EOL><DEDENT>elif s == '<STR_LIT>':<EOL><INDENT>query = query.order_by(desc(field))<EOL><DEDENT>return query<EOL>
Modify query as so to order the results.

        :param query: Query object.
        :param str s: Orderinig: ``asc`` or ``desc``.
        :returs: Query object.