java.lang.Object
com.github.martincooper.datatable.sorting.DataSort

public class DataSort extends Object
DataSort. Main QuickSort implementation. Created by Martin Cooper on 25/07/2017.
  • Constructor Details

    • DataSort

      public DataSort()
  • Method Details

    • quickSort

      public static io.vavr.control.Try<DataView> quickSort(DataTable table, io.vavr.collection.Seq<DataRow> rows, io.vavr.collection.Seq<SortItem> sortItems)
      Performs a quick sort on a DataTable given the specified parameters.
      Parameters:
      table - The underlying table containing the data.
      rows - The collection of rows to be sorted.
      sortItems - The sort details.
      Returns:
      Returns a sorted DataView.