@staticmethod<EOL><INDENT>def parse_order(text):<DEDENT>
orders = []<EOL>for i in map(str.strip, text.split('<STR_LIT:U+002C>')):<EOL><INDENT>items = i.split('<STR_LIT:.>', <NUM_LIT:2>)<EOL>if len(items) == <NUM_LIT:1>: column, order = items[<NUM_LIT:0>], '<STR_LIT:default>'<EOL>elif len(items) == <NUM_LIT:2>: column, order = items<EOL>else: raise InvalidParams("<STR_LIT>")<EOL>order = order.lower()<EOL>if order not in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT:default>'):<EOL><INDENT>raise InvalidParams('<STR_LIT>' % order)<EOL><DEDENT>if order != '<STR_LIT:default>':<EOL><INDENT>orders.append(SQLQueryOrder(column, order))<EOL><DEDENT><DEDENT>return orders<EOL>
:param text: order=id.desc, xxx.asc
:return: [
    [<column>, asc|desc|default],
    [<column2>, asc|desc|default],
]