title: How can I specify the order of DataAnnotation ValidationAttribute's?
body: <p>The question <a href="https://stackoverflow.com/questions/3912728/how-to-specify-order-of-data-annotation-errors-in-html-validationsummary">here</a> is similar, but I don't have any domain object inheritance. My field and validation tags are in the following order, but the MustBe18 error and the Required error are the only ones that print. I have several other fields in this model with much more validation, but the order of ValidationAttribute's in the code doesn't seem to matter. jfar's answer in the linked post seems to suggest a helper could be built, but how? How can the order be controlled?</p>
  
  <pre><code>[Required(ErrorMessage = "This field is required")]
  [DisplayName("Date of Birth")]
  [MustBeValidDate(ErrorMessage = "Must be a valid date")]
  [MustBe18(ErrorMessage = "You must be 18 years old")]
  [MustNotBeOver100(ErrorMessage = "This caller is too old")]
  public string dob { get; set; }
  </code></pre>
  
  <p>MustBe18 : ValidationAttribute (the overloaded IsValid method)</p>
  
  <pre><code>try
  {
      DateTime dob = new DateTime(DateTime.Now.AddYears(-18).Year, DateTime.Now.Month, DateTime.Now.Day);
      return DateTime.Compare(DateTime.Parse(value.ToString()), dob) &lt;= 0;
  }
  catch
  {
      return false;
  }
  </code></pre>