fix doctests and order terms
fix doctests and order terms

Designist/sympy,drufat/sympy,Sumith1896/sympy,iamutkarshtiwari/sympy,jbbskinny/sympy,maniteja123/sympy,Davidjohnwilson/sympy,Gadal/sympy,ChristinaZografou/sympy,souravsingh/sympy,Shaswat27/sympy,jerli/sympy,bukzor/sympy,MridulS/sympy,emon10005/sympy,jerli/sympy,hrashk/sympy,emon10005/sympy,aktech/sympy,farhaanbukhsh/sympy,MridulS/sympy,saurabhjn76/sympy,Titan-C/sympy,MechCoder/sympy,MridulS/sympy,Gadal/sympy,grevutiu-gabriel/sympy,abloomston/sympy,liangjiaxing/sympy,sahmed95/sympy,beni55/sympy,garvitr/sympy,kevalds51/sympy,oliverlee/sympy,meghana1995/sympy,lindsayad/sympy,wyom/sympy,farhaanbukhsh/sympy,Sumith1896/sympy,oliverlee/sympy,Shaswat27/sympy,liangjiaxing/sympy,moble/sympy,toolforger/sympy,Curious72/sympy,mafiya69/sympy,hrashk/sympy,debugger22/sympy,VaibhavAgarwalVA/sympy,kaichogami/sympy,Vishluck/sympy,yukoba/sympy,atsao72/sympy,shipci/sympy,atreyv/sympy,jbbskinny/sympy,vipulroxx/sympy,kevalds51/sympy,hargup/sympy,chaffra/sympy,rahuldan/sympy,kaichogami/sympy,Davidjohnwilson/sympy,grevutiu-gabriel/sympy,dqnykamp/sympy,dqnykamp/sympy,beni55/sympy,skirpichev/omg,rahuldan/sympy,mcdaniel67/sympy,AunShiLord/sympy,maniteja123/sympy,pbrady/sympy,aktech/sympy,wyom/sympy,Mitchkoens/sympy,skidzo/sympy,Arafatk/sympy,sahmed95/sympy,pandeyadarsh/sympy,vipulroxx/sympy,aktech/sympy,jbbskinny/sympy,AkademieOlympia/sympy,Curious72/sympy,iamutkarshtiwari/sympy,ga7g08/sympy,Arafatk/sympy,toolforger/sympy,kmacinnis/sympy,mafiya69/sympy,cswiercz/sympy,sampadsaha5/sympy,kaushik94/sympy,shikil/sympy,kaushik94/sympy,atsao72/sympy,AkademieOlympia/sympy,Shaswat27/sympy,iamutkarshtiwari/sympy,debugger22/sympy,kaichogami/sympy,postvakje/sympy,sampadsaha5/sympy,vipulroxx/sympy,Sumith1896/sympy,abhiii5459/sympy,ga7g08/sympy,atsao72/sympy,Gadal/sympy,amitjamadagni/sympy,madan96/sympy,asm666/sympy,lidavidm/sympy,madan96/sympy,jaimahajan1997/sympy,asm666/sympy,ahhda/sympy,Designist/sympy,Vishluck/sympy,pandeyadarsh/sympy,AunShiLord/sympy,skidzo/sympy,Titan-C/sympy,abloomston/sympy,bukzor/sympy,hargup/sympy,chaffra/sympy,liangjiaxing/sympy,hrashk/sympy,Mitchkoens/sympy,shikil/sympy,drufat/sympy,yukoba/sympy,sunny94/temp,kumarkrishna/sympy,postvakje/sympy,jamesblunt/sympy,wanglongqi/sympy,beni55/sympy,asm666/sympy,Mitchkoens/sympy,jaimahajan1997/sympy,ga7g08/sympy,lidavidm/sympy,sahilshekhawat/sympy,yashsharan/sympy,lindsayad/sympy,moble/sympy,emon10005/sympy,atreyv/sympy,ChristinaZografou/sympy,sahilshekhawat/sympy,madan96/sympy,maniteja123/sympy,AkademieOlympia/sympy,lidavidm/sympy,dqnykamp/sympy,cswiercz/sympy,meghana1995/sympy,souravsingh/sympy,souravsingh/sympy,Curious72/sympy,shipci/sympy,meghana1995/sympy,abloomston/sympy,kmacinnis/sympy,lindsayad/sympy,AunShiLord/sympy,sahilshekhawat/sympy,sahmed95/sympy,mcdaniel67/sympy,kevalds51/sympy,kumarkrishna/sympy,atreyv/sympy,VaibhavAgarwalVA/sympy,debugger22/sympy,pandeyadarsh/sympy,pbrady/sympy,jamesblunt/sympy,Davidjohnwilson/sympy,sunny94/temp,jerli/sympy,yashsharan/sympy,yashsharan/sympy,MechCoder/sympy,Titan-C/sympy,farhaanbukhsh/sympy,sunny94/temp,jaimahajan1997/sympy,Arafatk/sympy,postvakje/sympy,wanglongqi/sympy,garvitr/sympy,ChristinaZografou/sympy,kumarkrishna/sympy,oliverlee/sympy,grevutiu-gabriel/sympy,skidzo/sympy,Vishluck/sympy,MechCoder/sympy,jamesblunt/sympy,cccfran/sympy,mafiya69/sympy,drufat/sympy,chaffra/sympy,yukoba/sympy,mcdaniel67/sympy,hargup/sympy,wyom/sympy,cccfran/sympy,rahuldan/sympy,moble/sympy,kaushik94/sympy,garvitr/sympy,Designist/sympy,amitjamadagni/sympy,ahhda/sympy,diofant/diofant,sampadsaha5/sympy,saurabhjn76/sympy,saurabhjn76/sympy,ahhda/sympy,shipci/sympy,shikil/sympy,wanglongqi/sympy,toolforger/sympy,bukzor/sympy,cswiercz/sympy,VaibhavAgarwalVA/sympy,cccfran/sympy,pbrady/sympy,abhiii5459/sympy,abhiii5459/sympy,kmacinnis/sympy