# C1.Report.GroupDef.SortExpression

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Report_GroupDef_SortExpression" data-uid="C1.Report.GroupDef.SortExpression" class="text-break">SortExpression Field
</h1>
<div class="markdown level0 summary"><p>Defines the sorting expression, it can be used to sort group instances by the aggregate function.
For example: Sum(someField).
Direction of the sorting specified by the <a class="xref" href="C1.Report.GroupDef.Sorting.html">Sorting</a> property. If <a class="xref" href="C1.Report.GroupDef.SortExpression.html">SortExpression</a>
is not specified then groups sorted bu the value returned <a class="xref" href="C1.Report.GroupDef.Expression.html">Expression</a> expression.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
<h6><strong>Assembly</strong>: C1.Report.dll</h6>
<h5 id="C1_Report_GroupDef_SortExpression_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string SortExpression</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public SortExpression As String</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td>Defines the sorting expression, it can be used to sort group instances by the aggregate function. For example: Sum(someField). Direction of the sorting specified by the  property. If  is not specified then groups sorted bu the value returned  expression.</td>
    </tr>
  </tbody>
</table>
</div>
