title: Is it possible to create a csv string that orders by given positions using linq?
body: <p>I'm creating a value converter that receives (object value) as parameter. Those are numbers of the object <code>DrawNumber</code>. I want to convert these numbers into a string separated by commas but the numbers have to be in the right position (<code>Position</code> is a property from <code>DrawNumber</code>). Is this possible to do in LINQ?</p>
  
  <pre><code>public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  {
      IEnumerable&lt;DrawNumber&gt; numbers = (IEnumerable&lt;DrawNumber&gt;)value;
      List&lt;DrawNumber&gt; numberList = new List&lt;DrawNumber&gt;(numbers);
      var csv = string.Join(",", numberList);
      // this doesnt order it based on position
  }
  </code></pre>
  
  <pre><code>public class DrawNumber
  {
      public int DrawId { get; set; }
      public int Number { get; set; }
      public int? Position { get; set; }
  }
  </code></pre>