title: How to sort items in ObjectListView?
body: <p>I am using <a href="http://objectlistview.sourceforge.net/cs/gettingStarted.html" rel="nofollow"><code>ObjectListView</code></a> to display a list of items. However columns are not getting sorted when I click on the column headers.</p>
  
  <p>Please refer the code pasted below:</p>
  
  <pre><code>public class Stock
  {
      public Stock()
      {
      }
  
      public Stock(string name, double lastPrice, double greenTrend, double redTrend, double lastGreenValue, double lastRedValue)
      {
          this.Name = name;
          this.LastPrice = lastPrice;
          this.GreenTrend = greenTrend;
          this.RedTrend = redTrend;
          this.LastGreenValue = lastGreenValue;
          this.LastRedValue = lastRedValue;
      }
  
      public string Name
      {
          get { return name; }
          set { name = value; }
      }
      private string name;
  
      public double LastPrice
      {
          get { return lastPrice; }
          set { lastPrice = value; }
      }
      private double lastPrice;
  
      public double GreenTrend
      {
          get { return greenTrend; }
          set { greenTrend = value; }
      }
      private double greenTrend;
  
      public double RedTrend
      {
          get { return redTrend; }
          set { redTrend = value; }
      }
      private double redTrend;
  
      public double LastGreenValue
      {
          get { return lastGreenValue; }
          set { lastGreenValue = value; }
      }
      private double lastGreenValue;
  
      public double LastRedValue
      {
          get { return lastRedValue; }
          set { lastRedValue = value; }
      }
      private double lastRedValue;
  }
  </code></pre>