Added idf reordering of training data (columns ascending) as idftrain.