title: ListView sort column by Label control ID
body: <p>I am attempting to sort a ListView column by a control content - in this case a Label, as opposed to within the SQL itself. This is due to a calculation in the C# code behind to display the text in the column of the LV ItemTemplate.</p>
  
  <p>The control content is a Date displayed value (UK short date format).</p>
  
  <p>So in code terms, if the label is:</p>
  
  <pre><code>&lt;asp:Label runat="server" ID="lbDateSort" Text='&lt;%# CalculateDate() %&gt;' /&gt;
  </code></pre>
  
  <p>I'd like the ListView (i'd hazard guess on LV DataBound) to, by default, sort by the resulting value in the Label example.</p>
  
  <p>I hope that makes sense, but happy to clarify further. Thanks a load guys.</p>