# Wijmo_Grid_Sheet.Sortmanager

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								SortManager Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Maintains sorting of the selected <a href="wijmo_grid_sheet.sheet.html">Sheet</a> of the <a href="wijmo_grid_sheet.flexsheet.html">FlexSheet</a>.</p>
								</div>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">SortManager</span>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Constructors
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#constructor" class="tsd-kind-icon">constructor</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#sortdescriptions" class="tsd-kind-icon">sort<wbr>Descriptions</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Methods
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#addsortlevel" class="tsd-kind-icon">add<wbr>Sort<wbr>Level</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#cancelsort" class="tsd-kind-icon">cancel<wbr>Sort</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#checksortitemexists" class="tsd-kind-icon">check<wbr>Sort<wbr>Item<wbr>Exists</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#clearsort" class="tsd-kind-icon">clear<wbr>Sort</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#commitsort" class="tsd-kind-icon">commit<wbr>Sort</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#copysortlevel" class="tsd-kind-icon">copy<wbr>Sort<wbr>Level</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#deletesortlevel" class="tsd-kind-icon">delete<wbr>Sort<wbr>Level</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#editsortlevel" class="tsd-kind-icon">edit<wbr>Sort<wbr>Level</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid_sheet.sortmanager.html#movesortlevel" class="tsd-kind-icon">move<wbr>Sort<wbr>Level</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Constructors</h2>
							<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
								<a name="constructor" class="tsd-anchor"></a>
								<h3>constructor</h3>
								<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">new <wbr>Sort<wbr>Manager<span class="tsd-signature-symbol">(</span>owner<span class="tsd-signature-symbol">: </span><a href="wijmo_grid_sheet.flexsheet.html" class="tsd-signature-type">FlexSheet</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo_grid_sheet.sortmanager.html" class="tsd-signature-type">SortManager</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Initializes a new instance of the <a href="wijmo_grid_sheet.sortmanager.html">SortManager</a> class.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>owner: <a href="wijmo_grid_sheet.flexsheet.html" class="tsd-signature-type">FlexSheet</a></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>The <a href="wijmo_grid_sheet.flexsheet.html">FlexSheet</a> control that owns this <b>SortManager</b>.</p>
													</div>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo_grid_sheet.sortmanager.html" class="tsd-signature-type">SortManager</a></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="sortdescriptions" class="tsd-anchor"></a>
								<h3>sortDescriptions</h3>
								<div class="tsd-signature tsd-kind-icon">sort<wbr>Descriptions<span class="tsd-signature-symbol">:</span> <a href="wijmo.collectionview.html" class="tsd-signature-type">CollectionView</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the collection of the sort descriptions represented by the  <a href="wijmo_grid_sheet.columnsortdescription.html">ColumnSortDescription</a> objects.</p>
									</div>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Methods</h2>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="addsortlevel" class="tsd-anchor"></a>
								<h3>addSortLevel</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">add<wbr>Sort<wbr>Level<span class="tsd-signature-symbol">(</span>columnIndex<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, ascending<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Adds a blank sorting level to the sort descriptions.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> columnIndex: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>The index of the column in the FlexSheet control.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> ascending: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>The sort order for the sort level.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="cancelsort" class="tsd-anchor"></a>
								<h3>cancelSort</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">cancel<wbr>Sort<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Cancel the current sort descriptions to the FlexSheet control.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="checksortitemexists" class="tsd-anchor"></a>
								<h3>checkSortItemExists</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">check<wbr>Sort<wbr>Item<wbr>Exists<span class="tsd-signature-symbol">(</span>columnIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Check whether the sort item of specific column exists or not</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>columnIndex: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<p>The index of the column in the FlexSheet control.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="clearsort" class="tsd-anchor"></a>
								<h3>clearSort</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">clear<wbr>Sort<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Clear the sort descriptions.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="commitsort" class="tsd-anchor"></a>
								<h3>commitSort</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">commit<wbr>Sort<span class="tsd-signature-symbol">(</span>undoable<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Commits the current sort descriptions to the FlexSheet control.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> undoable: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>The boolean value indicating whether the commit sort action is undoable.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="copysortlevel" class="tsd-anchor"></a>
								<h3>copySortLevel</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">copy<wbr>Sort<wbr>Level<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Adds a copy of the current sorting level to the sort descriptions.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="deletesortlevel" class="tsd-anchor"></a>
								<h3>deleteSortLevel</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">delete<wbr>Sort<wbr>Level<span class="tsd-signature-symbol">(</span>columnIndex<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Removes the current sorting level from the sort descriptions.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> columnIndex: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>The index of the column in the FlexSheet control.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="editsortlevel" class="tsd-anchor"></a>
								<h3>editSortLevel</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">edit<wbr>Sort<wbr>Level<span class="tsd-signature-symbol">(</span>columnIndex<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, ascending<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Updates the current sort level.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> columnIndex: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>The column index for the sort level.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> ascending: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>The sort order for the sort level.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="movesortlevel" class="tsd-anchor"></a>
								<h3>moveSortLevel</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">move<wbr>Sort<wbr>Level<span class="tsd-signature-symbol">(</span>offset<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Moves the current sorting level to a new position.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>offset: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>The offset to move the current level by.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
						</section>
					</div>