title: Does the DataAnnotations.DisplayAttribute.Order property not work with ASP.NET MVC 2?
body: <p>I set values for the <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.displayattribute.order(v=VS.100).aspx" rel="nofollow noreferrer">Order property</a> of the <a href="http://msdn.microsoft.com/en-us/library/dd411771(v=VS.100).aspx" rel="nofollow noreferrer">Display attribute</a> in my model metadata.</p>
  
  <pre><code>[MetadataType(typeof(OccasionMetadata))]
  public partial class Occasion
  {
      private class OccasionMetadata
      {
          [ScaffoldColumn(false)]
          public object Id { get; set; }
  
          [Required]
          [Display(Name = "Title", Order = 0)]
          public object Designation { get; set; }
  
          [Required]
          [DataType(DataType.MultilineText)]
          [Display(Order = 3)]
          public object Summary { get; set; }
  
          [Required]
          [DataType(DataType.DateTime)]
          [Display(Order = 1)]
          public object Start { get; set; }
  
          [Required]
          [DataType(DataType.DateTime)]
          [Display(Order = 2)]
          public object Finish { get; set; }
      }
  }
  </code></pre>
  
  <p>I present my models in strongly-typed views using the <a href="http://msdn.microsoft.com/en-us/library/system.web.mvc.html.displayextensions.displayformodel.aspx" rel="nofollow noreferrer">DisplayForModel</a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.mvc.html.editorextensions.editorformodel(v=VS.100).aspx" rel="nofollow noreferrer">EditorForModel</a> methods.</p>
  
  <pre><code>&lt;%= Html.DisplayForModel() %&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;%= Html.EditorForModel() %&gt;
  </code></pre>
  
  <p>But, ASP.NET MVC 2 displays the fields out of order! What might I have wrong?</p>