Use OrderedDict to write out training features in order.