def sort2sqlorderby(self, sort): sort = jx.normalize_sort_parameters(sort) return ",\n".join([ self.quote_column(s.field) + (" DESC" if s.sort == -1 else " ASC") for s in sort ])
def sort2sqlorderby(self, sort): sort = jx.normalize_sort_parameters(sort) return sql_list([ quote_column(s.field) + (SQL_DESC if s.sort == -1 else SQL_ASC) for s in sort ])
def sort2sqlorderby(self, sort): sort = jx.normalize_sort_parameters(sort) return sql_list([quote_column(s.field) + (SQL_DESC if s.sort == -1 else SQL_ASC) for s in sort])