(self, expr)
Sort ``expr.args`` using printing order.
Sort ``expr.args`` using printing order.
Sort expr . args using printing order .
def _get_ordered_args(self, expr):
        """Sort ``expr.args`` using printing order. """
        if expr.is_Add:
            return expr.as_ordered_terms()
        elif expr.is_Mul:
            return expr.as_ordered_factors()
        else:
            return expr.args
def _get_ordered_args ( self , expr ) : if expr . is_Add : return expr . as_ordered_terms ( ) elif expr . is_Mul : return expr . as_ordered_factors ( ) else : return expr . args