BUG: Fix dtypes in sorting functions to npy_intp
BUG: Fix dtypes in sorting functions to npy_intp

Some of the iteration variables were int, causing sorts to fail for large
arrays. Fixes github issue 427.

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