How to sort or reorder columns selected with selectors #6795
              
                
                  
                  
                    Answered
                  
                  by
                    lostmygithubaccount
                  
              
          
                  
                    
                      ozgurkalan
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hi there, How to sort columns in this case: | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            lostmygithubaccount
          
      
      
        Aug 7, 2023 
      
    
    Replies: 1 comment 8 replies
-
| you could re-select and sort the columns: t = t.select(sorted(t.columns))and replace the sorted function with custom logic as needed | 
Beta Was this translation helpful? Give feedback.
                  
                    8 replies
                  
                
            
      Answer selected by
        lostmygithubaccount
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
you could re-select and sort the columns:
and replace the sorted function with custom logic as needed