Usage

SortEngine Reference

Sort routines of the quick sort and the bubble sort algorithm.

Constructor Methods

make

Make a new instance of default settings.

make_with

Make a new instance with passing a record which describes options.

Class method

base_comparator

Obtain default comparator script in embedded in SortEngine.

Do Sort

sort_list

Sort a list.

sort_xlist

Sort a XList.

sort_table

Sort each list in two dimensional list according to the order of the list of the specified index.

sort_xtable

Sort each XList in two dimensional XList according to the order of the sub XList of the specified index.

Accessor Methods

is_ascending

Return true when sorting order of the instance is ascending.

set_ascending

Set sorting order.

use_bubblesort

Set sorting algorithm to quick sort. This is the default.

use_quicksort

Set sorting algorithm to bubble sort.

comparator

Obtain current comparator script

set_comparator

Set a custom comparator to the instance.

Usage