# C1.Win.List.C1Combo.Sort

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_C1Combo_Sort_" data-uid="C1.Win.List.C1Combo.Sort*">Sort Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_C1Combo_Sort_" data-uid="C1.Win.List.C1Combo.Sort*"></a>
<h4 id="C1_Win_List_C1Combo_Sort_System_Int32_C1_Win_List_SortDirEnum_" data-uid="C1.Win.List.C1Combo.Sort(System.Int32,C1.Win.List.SortDirEnum)">Sort(int, SortDirEnum)</h4>
<div class="markdown level1 summary"><p>Sorts a specific column for the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Sort(int col, SortDirEnum dir)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Sort(col As Integer, dir As SortDirEnum)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.List.SortDirEnum.html">SortDirEnum</a></td>
      <td><span class="parametername">dir</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_List_C1Combo_Sort_" data-uid="C1.Win.List.C1Combo.Sort*"></a>
<h4 id="C1_Win_List_C1Combo_Sort_System_String_C1_Win_List_SortDirEnum_" data-uid="C1.Win.List.C1Combo.Sort(System.String,C1.Win.List.SortDirEnum)">Sort(string, SortDirEnum)</h4>
<div class="markdown level1 summary"><p>Sorts a specific column for the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Sort(string colName, SortDirEnum dir)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Sort(colName As String, dir As SortDirEnum)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">colName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.List.SortDirEnum.html">SortDirEnum</a></td>
      <td><span class="parametername">dir</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
