Preserve cost ordering in training output.