As of now, stable sort is not available in pytorch.

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      Request to add stable sorting algorithm to PyTorch 5
    

    
      
        opened 
        
          
        
        Oct 30, 2019
      
      


      
        
          
          seva100
        
      
    
  



  🚀 Feature
My feature request is to add the algorithm of stable sorting to PyTorch. Stable sorting is a method of sorting...



    OSS contribution wanted
    function request
    module: numpy
    module: sorting and selection
    triaged


  
  
    
    
  
  


Try to use numpy.sort() if you require stable sort.

  
      numpy.org
  
  
    

numpy.sort — NumPy v1.19 Manual 1