title: Can I call a function in a lambda expression?
body: <p>I would like to do the following but I don't think this will work:</p>
  
  <pre><code>.OrderByDescending(s =&gt; Score(s)), ...
  
  
  private double Score(Story s)
          {
              DateTime now = DateTime.Now;
              TimeSpan elapsed = now.Subtract(s.PostedOn);
              double daysAgo = elapsed.TotalDays;
  
              return s.Votes.Count + s.Comments.Count - daysAgo;
          }
  </code></pre>
  
  <p>a. should this work?
     b. if not, do I need to query for the stories and then sort them by the score?</p>