Possible Bug in 1.0.52: Order of list elements in text_classifier_learner.data.classes

The labels are in alphabetical order yes, to ensure that every time you create your DataBunch, you get the same mapping.
Note that the predictions with text might be in the wrong order because we sort the samples by length. So you should use ordered=True when you call get_preds. Maybe that’s where your problem come from.