question: Sort the values of the dataframe `df` and align the columns accordingly based on the obtained indices after np.argsort.
  
target: pd . DataFrame ( df . columns [ np . argsort ( df . values ) ] , df . index , np . unique ( df . values ) ) 
  