# C1.Data.DataSource.SortDescriptor

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Data_DataSource_SortDescriptor" data-uid="C1.Data.DataSource.SortDescriptor" class="text-break">SortDescriptor Class
</h1>
  <div class="markdown level0 summary"><p>Descriptor used by the <a class="xref" href="C1.Data.DataSource.ClientViewSource.html">ClientViewSource</a> to sort data returned from queries.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><span class="xref">SortDescriptor</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Data.DataSource.html">C1.Data.DataSource</a></h6>
  <h6><strong>Assembly</strong>: C1.Data.Entity.4.8.dll</h6>
  <h5 id="C1_Data_DataSource_SortDescriptor_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SortDescriptor : DependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SortDescriptor
    Inherits DependencyObject</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_DataSource_SortDescriptor__ctor" data-uid="C1.Data.DataSource.SortDescriptor.#ctor">
          <a class="xref" href="C1.Data.DataSource.SortDescriptor.-ctor.html#C1_Data_DataSource_SortDescriptor__ctor">SortDescriptor()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Data.DataSource.SortDescriptor.html">SortDescriptor</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_DataSource_SortDescriptor__ctor_System_String_System_ComponentModel_ListSortDirection_" data-uid="C1.Data.DataSource.SortDescriptor.#ctor(System.String,System.ComponentModel.ListSortDirection)">
          <a class="xref" href="C1.Data.DataSource.SortDescriptor.-ctor.html#C1_Data_DataSource_SortDescriptor__ctor_System_String_System_ComponentModel_ListSortDirection_">SortDescriptor(string, ListSortDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Data.DataSource.SortDescriptor.html">SortDescriptor</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_DataSource_SortDescriptor_DirectionProperty" data-uid="C1.Data.DataSource.SortDescriptor.DirectionProperty">
          <a class="xref" href="C1.Data.DataSource.SortDescriptor.DirectionProperty.html">DirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>The DependencyProperty for the <a class="xref" href="C1.Data.DataSource.SortDescriptor.Direction.html#C1_Data_DataSource_SortDescriptor_Direction">Direction</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_DataSource_SortDescriptor_PropertyPathProperty" data-uid="C1.Data.DataSource.SortDescriptor.PropertyPathProperty">
          <a class="xref" href="C1.Data.DataSource.SortDescriptor.PropertyPathProperty.html">PropertyPathProperty</a>
        </td>
        <td class="markdown level1 summary"><p>The DependencyProperty for the <a class="xref" href="C1.Data.DataSource.SortDescriptor.PropertyPath.html#C1_Data_DataSource_SortDescriptor_PropertyPath">PropertyPath</a> property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_DataSource_SortDescriptor_Direction" data-uid="C1.Data.DataSource.SortDescriptor.Direction">
          <a class="xref" href="C1.Data.DataSource.SortDescriptor.Direction.html#C1_Data_DataSource_SortDescriptor_Direction">Direction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the sort direction: Ascending or Descending.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_DataSource_SortDescriptor_PropertyPath" data-uid="C1.Data.DataSource.SortDescriptor.PropertyPath">
          <a class="xref" href="C1.Data.DataSource.SortDescriptor.PropertyPath.html#C1_Data_DataSource_SortDescriptor_PropertyPath">PropertyPath</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the property path used to sort data.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
