C# Class ZForge.Controls.XPTable.Sorting.MergeSorter

A MergeSort implementation for sorting the Cells contained in a TableModel
Inheritance: SorterBase
Exibir arquivo Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
MergeSorter ( TableModel tableModel, int column, IComparer comparer, SortOrder sortOrder ) : System

Initializes a new instance of the MergeSorter class with the specified TableModel, Column index, IComparer and SortOrder

Sort ( ) : void

Starts sorting the Cells in the TableModel

Private Methods

Method Description
Sort ( int fromPos, int toPos ) : void

Method Details

MergeSorter() public method

Initializes a new instance of the MergeSorter class with the specified TableModel, Column index, IComparer and SortOrder
public MergeSorter ( TableModel tableModel, int column, IComparer comparer, SortOrder sortOrder ) : System
tableModel ZForge.Controls.XPTable.Models.TableModel The TableModel that contains the data to be sorted
column int The index of the Column to be sorted
comparer IComparer The IComparer used to sort the Column's Cells
sortOrder SortOrder Specifies how the Column is to be sorted
return System

Sort() public method

Starts sorting the Cells in the TableModel
public Sort ( ) : void
return void