title: EnumDropDownListFor localization resx value sort
body: <p>I'm new to razor mvc and mvc in general.  I have an EnumDropDownListFor that displays Countries in the appropriate language. What I need to have is the dropdownlist sorted in alpha order depending on the different localization resx values.  </p>
  
  <p>in my cshtml I have:</p>
  
  <pre><code>&lt;div&gt;@Html.LabelFor(m =&gt; m.Country)&lt;/div&gt;
  @Html.EnumDropDownListFor(m =&gt; m.Country)
  </code></pre>
  
  <p>I have an enum CountryModel.cs :</p>
  
  <pre><code>//[Display(Name = "None", ResourceType = typeof(Web.Models.CountryResources.Fixtures))]
      //None = 0,
      [Display(Name = "Canada", ResourceType = typeof(Web.Models.CountryResources.Fixtures))]
      Canada = 1,
      [Display(Name = "Mexico", ResourceType = typeof(Web.Models.CountryResources.Fixtures))]
      Mexico = 2,
      [Display(Name = "UnitedStates", ResourceType = typeof(Web.Models.CountryResources.Fixtures))]
      UnitedStates = 3
  </code></pre>
  
  <p>Values are stored in resx files for the different languages. For English this is displaying in the correct order based on order in countrymodel but for say French, it should be (values coming from country.fr.resx):
      Canada
      États Unis (which is United States)
      Mexique (which is Mexico)
  instead of:
      Canada
      Mexique
      États Unis</p>
  
  <p>My list actually has 37 countries and we could add to it at any time. The selected country's integer is written to the db for later retrieval/editing. </p>
  
  <p>So how do I get the EnumDropDownListFor to sort based on resx values? Should I be using something other than the EnumDropdownListFor? I've seen examples for getting values from resx and have that working but I haven't found examples of making it sort appropriately based on those values.  Thank you!</p>
  
  <p>Edit: forgot to say my Model has:</p>
  
  <pre><code>[Display(Name = nameof(Account.Account.Country), ResourceType = typeof(Account.Account))]
      public CountryModel Country { get; set; }
  </code></pre>