def sort_dataframes(self,sortcolumn):
        """
        Sort all data frame attributes of class by a given column for ease of comparison.
        """
        try:
            for i in range(len(self.sub_models)):
                self.sub_models[i] = self.sub_models[i].sort(sortcolumn)
            if 'df_true' in dir(self):
                self.df_true = self.df_true.sort(sortcolumn)
            if 'df_true_segment' in dir(self):
                self.df_true_segment = self.df_true_segment.sort(sortcolumn)
        except __HOLE__:
            raise Exception('Sort failed.  Column %s not found in all dataframes.' % (sortcolumn))
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/ensembles.py/EnsembleAvg.sort_dataframes