title: How to sort the data of a collection in ascending or descending order?
body: <p>I am adding data in a collection which I want to sort based on the date. I want to organize the data in the collection in such a way that all the past dates or current dates should come at top, and all the future dates should come at the bottom, after past current dates.</p>
  
  <p>I am doing something like this as mentioned below</p>
  
  <pre><code>objList.Name = ' Here I am getting the name
  objList.CurDate = ' Here I am getting the current date
  obJList.EventDate = ' Here I am getting the event date
  </code></pre>
  
  <p>then I am adding the above record in a collection.</p>
  
  <pre><code>Dim colEvents As New Collection
  colEvents.Add(objList)
  </code></pre>
  
  <p>After this I want to check if <code>EventDate &lt;= CurDate</code>, then sort the data in the collection such that past and current dates are arranged at the top, and future dates come after past and current dates.</p>
  
  <p>NOTE: <code>EventDate</code> can be <em>past, future, or current date</em>.</p>
  
  <p>Can someone please help me understand how can I achieve this?</p>