Example #1
0
 /// <summary>
 /// Sorts rows. If <i>columns </i> is null, it is replaced by the first
 /// <see cref="DataFrameSorting.LimitNumberSortingColumns"/> columns.
 /// </summary>
 public void Sort(IEnumerable <int> columns = null, bool ascending = true)
 {
     if (columns == null)
     {
         columns = Enumerable.Range(0, Math.Min(ColumnCount, DataFrameSorting.LimitNumberSortingColumns));
     }
     DataFrameSorting.Sort(this, columns, ascending);
 }
Example #2
0
 /// <summary>
 /// Sorts rows.
 /// </summary>
 public void Sort(IEnumerable <string> columns, bool ascending = true)
 {
     DataFrameSorting.Sort(this, columns.Select(c => GetColumnIndex(c)), ascending);
 }
Example #3
0
 /// <summary>
 /// Sorts rows.
 /// </summary>
 public void Sort(IEnumerable <int> columns, bool ascending = true)
 {
     DataFrameSorting.Sort(this, columns, ascending);
 }