Ticket #9880: trac_9880-fix_variables_ordering.patch

File trac_9880-fix_variables_ordering.patch, 722 bytes (added by jpflori, 10 years ago)

Revert previous ordering for "variables" function

  • sage/symbolic/expression.pyx

    # HG changeset patch
    # User Jean-Pierre Flori <flori@enst.fr>
    # Date 1316596740 -7200
    # Node ID 51312e434b41ac411dd0a85fe570fbabad199c44
    # Parent  bf44298245b2017afc623ff90195b009153acdcc
    Trac 9880: Fix variables ordering
    
    diff -r bf44298245b2 -r 51312e434b41 sage/symbolic/expression.pyx
    a b  
    38373837        while itr.is_not_equal(sym_set.end()):
    38383838            res.append(new_Expression_from_GEx(SR, itr.obj()))
    38393839            itr.inc()
    3840         res.sort(cmp=lambda x,y: cmp(x,y))
     3840        res.sort(cmp=lambda x,y: -cmp(x,y))
    38413841        return tuple(res)
    38423842
    38433843    def arguments(self):