Correctly sort the field names when there are 10 or more columns in the dataset. Previously was sorting in alpha sequence.