title: Pass orderBy or OrderByDescending as parameter
body: <p>I have method like this :</p>
  
  <pre><code>GetUsallyOpeningClosingHour(Func&lt;OpeningDay, TimeSpan&gt; groupByRule)
  {
  var openingClosingHours = listOfSpecificDayOfWeek.GroupBy(groupByRule).OrderByDescending(x =&gt; x.Key);
  }
  </code></pre>
  
  <p>and the problem is that I can't stick all the time with <code>OrderByDescending</code> depends on groupByRule parameter sometimes it has to be orderByDescending or OrderBy</p>
  
  <p>I don't want to depend on this parameter, so I could pass another one for that, 
  Right now I call my method this way:</p>
  
  <pre><code>GetUsallyOpeningClosingHour(x =&gt; x.From)
  </code></pre>
  
  <p>or </p>
  
  <pre><code>GetUsallyOpeningClosingHour(x =&gt; x.To)
  </code></pre>
  
  <p>How can I pass orderBy type as well ? </p>