<commit_before>import provinceData from 'provinces';

/**
 * Provides a list of short-code provinces (states, etc) for the country codes provided.
 */
export default (countries) => countries.reduce((regions, countryCode) =>
  regions.concat(
    regions,
    provinceData
      .filter((province) => province.country === countryCode.toUpperCase())
      .map((province) => province.short),
  ),
  [],
);<commit_msg>ensure sort on provinces<commit_after>import provinceData from 'provinces';

/**
 * Provides a list of short-code provinces (states, etc) for the country codes provided.
 */
export default (countries) => countries.reduce((regions, countryCode) =>
  regions.concat(
    regions,
    provinceData
      .filter((province) => province.country === countryCode.toUpperCase())
      .map((province) => province.short)
      .sort(),
  ),
  [],
);
{'fraction_non_alphanumeric': 0.14619883040935672, 'fraction_numerical': 0.0, 'mean_word_length': 3.9767441860465116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7284273', 'n_tokens_mistral': 248, 'n_tokens_neox': 246, 'n_words': 64}