title: How to sort enum using a custom order attribute?
body: <p>I have an enum like this:  </p>
  
  <pre><code>enum MyEnum{
   [Order(1)]
   ElementA = 1,
   [Order(0)]
   ElementB = 2,
   [Order(2)]
   ElementC = 3
  }
  </code></pre>
  
  <p>And I want to list its elements sorted by a custom order attribute I wrote, so that I get a list of items sorted.</p>
  
  <p>I am getting the Description Attribute but just for one element like this:  </p>
  
  <pre><code>FieldInfo fi = value.GetType().GetField(value.ToString());
  DescriptionAttribute[] attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
  </code></pre>
  
  <p>It may be something the same but need to work on all Enum and return a list or another sorted enum.</p>