MAINT: move the special case for string comparison before the regular case
MAINT: move the special case for string comparison before the regular case

The ndarray richcompare function has a special case for handling
string dtypes (which currently cannot be handled by
ufuncs). Traditionally this was handled by the ufuncs returning
NotImplemented, and then falling through to a special case. By moving
the special case to the top of the richcompare function, it becomes
unnecessary for the ufuncs to return NotImplemented in this case.

bertrand-l/numpy,KaelChen/numpy,leifdenby/numpy,grlee77/numpy,grlee77/numpy,jakirkham/numpy,MSeifert04/numpy,gfyoung/numpy,CMartelLML/numpy,sinhrks/numpy,ContinuumIO/numpy,kirillzhuravlev/numpy,sonnyhu/numpy,KaelChen/numpy,has2k1/numpy,ChanderG/numpy,Linkid/numpy,githubmlai/numpy,ESSS/numpy,hainm/numpy,felipebetancur/numpy,SunghanKim/numpy,ekalosak/numpy,ContinuumIO/numpy,ESSS/numpy,endolith/numpy,anntzer/numpy,nguyentu1602/numpy,githubmlai/numpy,utke1/numpy,sinhrks/numpy,bringingheavendown/numpy,SiccarPoint/numpy,ContinuumIO/numpy,cjermain/numpy,ekalosak/numpy,njase/numpy,ChristopherHogan/numpy,stuarteberg/numpy,AustereCuriosity/numpy,njase/numpy,jonathanunderwood/numpy,charris/numpy,chatcannon/numpy,pizzathief/numpy,GaZ3ll3/numpy,mhvk/numpy,BabeNovelty/numpy,MichaelAquilina/numpy,pbrod/numpy,leifdenby/numpy,SunghanKim/numpy,mattip/numpy,b-carter/numpy,jorisvandenbossche/numpy,hainm/numpy,GrimDerp/numpy,rajathkumarmp/numpy,has2k1/numpy,abalkin/numpy,maniteja123/numpy,kirillzhuravlev/numpy,nbeaver/numpy,nguyentu1602/numpy,jorisvandenbossche/numpy,charris/numpy,WillieMaddox/numpy,dimasad/numpy,pdebuyl/numpy,Yusa95/numpy,drasmuss/numpy,jorisvandenbossche/numpy,pizzathief/numpy,rudimeier/numpy,rgommers/numpy,rhythmsosad/numpy,felipebetancur/numpy,cjermain/numpy,rherault-insa/numpy,rherault-insa/numpy,utke1/numpy,MSeifert04/numpy,hainm/numpy,pbrod/numpy,bringingheavendown/numpy,Linkid/numpy,madphysicist/numpy,sonnyhu/numpy,rhythmsosad/numpy,musically-ut/numpy,simongibbons/numpy,moreati/numpy,skwbc/numpy,rgommers/numpy,chatcannon/numpy,jakirkham/numpy,has2k1/numpy,Linkid/numpy,nguyentu1602/numpy,Dapid/numpy,skymanaditya1/numpy,pbrod/numpy,stuarteberg/numpy,AustereCuriosity/numpy,musically-ut/numpy,moreati/numpy,leifdenby/numpy,ChristopherHogan/numpy,rgommers/numpy,anntzer/numpy,maniteja123/numpy,jankoslavic/numpy,kirillzhuravlev/numpy,pizzathief/numpy,Anwesh43/numpy,ahaldane/numpy,MSeifert04/numpy,mhvk/numpy,mhvk/numpy,argriffing/numpy,anntzer/numpy,madphysicist/numpy,gmcastil/numpy,rajathkumarmp/numpy,dwillmer/numpy,dimasad/numpy,groutr/numpy,skymanaditya1/numpy,Yusa95/numpy,mathdd/numpy,grlee77/numpy,groutr/numpy,shoyer/numpy,argriffing/numpy,trankmichael/numpy,anntzer/numpy,skwbc/numpy,pbrod/numpy,Yusa95/numpy,endolith/numpy,endolith/numpy,BabeNovelty/numpy,WarrenWeckesser/numpy,githubmlai/numpy,rajathkumarmp/numpy,MichaelAquilina/numpy,solarjoe/numpy,madphysicist/numpy,utke1/numpy,shoyer/numpy,shoyer/numpy,trankmichael/numpy,mingwpy/numpy,solarjoe/numpy,jschueller/numpy,ddasilva/numpy,solarjoe/numpy,Eric89GXL/numpy,numpy/numpy,pdebuyl/numpy,empeeu/numpy,madphysicist/numpy,mhvk/numpy,jschueller/numpy,empeeu/numpy,SiccarPoint/numpy,Linkid/numpy,rhythmsosad/numpy,tynn/numpy,ChristopherHogan/numpy,gmcastil/numpy,dimasad/numpy,mathdd/numpy,felipebetancur/numpy,ChanderG/numpy,WillieMaddox/numpy,ahaldane/numpy,jakirkham/numpy,skymanaditya1/numpy,sonnyhu/numpy,kirillzhuravlev/numpy,charris/numpy,jankoslavic/numpy,chiffa/numpy,ahaldane/numpy,tacaswell/numpy,CMartelLML/numpy,MaPePeR/numpy,bmorris3/numpy,Srisai85/numpy,charris/numpy,Srisai85/numpy,skwbc/numpy,SunghanKim/numpy,joferkington/numpy,seberg/numpy,ChristopherHogan/numpy,groutr/numpy,ViralLeadership/numpy,pyparallel/numpy,mattip/numpy,CMartelLML/numpy,ahaldane/numpy,ESSS/numpy,maniteja123/numpy,musically-ut/numpy,simongibbons/numpy,jankoslavic/numpy,mwiebe/numpy,bmorris3/numpy,nbeaver/numpy,mathdd/numpy,ViralLeadership/numpy,shoyer/numpy,mingwpy/numpy,abalkin/numpy,nguyentu1602/numpy,cjermain/numpy,Dapid/numpy,behzadnouri/numpy,pizzathief/numpy,jakirkham/numpy,endolith/numpy,Srisai85/numpy,GaZ3ll3/numpy,rudimeier/numpy,dimasad/numpy,rhythmsosad/numpy,bringingheavendown/numpy,MSeifert04/numpy,argriffing/numpy,jschueller/numpy,ddasilva/numpy,SiccarPoint/numpy,chatcannon/numpy,mattip/numpy,mathdd/numpy,has2k1/numpy,pdebuyl/numpy,chiffa/numpy,MSeifert04/numpy,numpy/numpy,SunghanKim/numpy,ssanderson/numpy,seberg/numpy,mhvk/numpy,njase/numpy,simongibbons/numpy,simongibbons/numpy,jschueller/numpy,Yusa95/numpy,AustereCuriosity/numpy,ekalosak/numpy,dwillmer/numpy,Dapid/numpy,sinhrks/numpy,pbrod/numpy,WillieMaddox/numpy,bmorris3/numpy,Anwesh43/numpy,grlee77/numpy,gmcastil/numpy,pizzathief/numpy,behzadnouri/numpy,cjermain/numpy,ChanderG/numpy,jorisvandenbossche/numpy,MaPePeR/numpy,behzadnouri/numpy,Anwesh43/numpy,nbeaver/numpy,drasmuss/numpy,WarrenWeckesser/numpy,rgommers/numpy,mwiebe/numpy,jonathanunderwood/numpy,chiffa/numpy,kiwifb/numpy,mattip/numpy,dwillmer/numpy,mwiebe/numpy,mingwpy/numpy,KaelChen/numpy,jorisvandenbossche/numpy,joferkington/numpy,kiwifb/numpy,musically-ut/numpy,ddasilva/numpy,sinhrks/numpy,madphysicist/numpy,gfyoung/numpy,felipebetancur/numpy,jankoslavic/numpy,b-carter/numpy,ssanderson/numpy,jonathanunderwood/numpy,BabeNovelty/numpy,GrimDerp/numpy,SiccarPoint/numpy,joferkington/numpy,b-carter/numpy,ChanderG/numpy,MaPePeR/numpy,drasmuss/numpy,dwillmer/numpy,pyparallel/numpy,GaZ3ll3/numpy,skymanaditya1/numpy,trankmichael/numpy,ahaldane/numpy,numpy/numpy,bertrand-l/numpy,BabeNovelty/numpy,tacaswell/numpy,githubmlai/numpy,jakirkham/numpy,shoyer/numpy,GrimDerp/numpy,simongibbons/numpy,pdebuyl/numpy,kiwifb/numpy,tynn/numpy,empeeu/numpy,bertrand-l/numpy,gfyoung/numpy,bmorris3/numpy,tynn/numpy,GaZ3ll3/numpy,abalkin/numpy,MichaelAquilina/numpy,rudimeier/numpy,rudimeier/numpy,stuarteberg/numpy,moreati/numpy,grlee77/numpy,tacaswell/numpy,seberg/numpy,Anwesh43/numpy,trankmichael/numpy,numpy/numpy,rajathkumarmp/numpy,empeeu/numpy,Eric89GXL/numpy,joferkington/numpy,stuarteberg/numpy,CMartelLML/numpy,Eric89GXL/numpy,sonnyhu/numpy,MichaelAquilina/numpy,WarrenWeckesser/numpy,ViralLeadership/numpy,pyparallel/numpy,Srisai85/numpy,seberg/numpy,WarrenWeckesser/numpy,rherault-insa/numpy,ssanderson/numpy,WarrenWeckesser/numpy,Eric89GXL/numpy,MaPePeR/numpy,hainm/numpy,mingwpy/numpy,KaelChen/numpy,ekalosak/numpy,GrimDerp/numpy