title: how to sort list of object? OrderBy c#
body: <p>I have <code>Track</code> class</p>
  
  <pre><code>class Track
  {
      public String Name { get; set; }
      public Double Duration;
      public Boolean IsRemix;
  
      public override string ToString()
      {
          if (IsRemix) return Name + "(Remix) " + Duration;
          return Name + " " + Duration;
      }
  }
  </code></pre>
  
  <p>and <code>Album</code> is a List:</p>
  
  <pre><code>class Album :List&lt;Track&gt;
      {
          public Album SortByAlphabet()
          {
              return new Album().OrderBy(x=&gt;x.Name);
          }
      }
  </code></pre>
  
  <p>How can I order Album by Track's name? In SortByAlphabet I need only Album be output.</p>
  
  <p><strong>Edit</strong></p>
  
  <pre><code>return this.OrderBy(x=&gt;x.Name).ToList();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>return (Album)this.OrderBy(x=&gt;x.Name).ToList();
  </code></pre>
  
  <p>doesn't help </p>
  
  <p>it's<br>
  throwing an exception, InvalidCastException</p>