Class: Gtk::NumericSorter

Inherits:
Sorter
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Sorter

#changed, #compare, #order

Constructor Details

#initialize(expression) ⇒ Gtk::NumericSorter

Creates a new numeric sorter using the given expression.

Smaller numbers will be sorted first. You can call [methodGtk.NumericSorter.set_sort_order] to change this.

Parameters:

Instance Method Details

#expressionGtk::Expression

The expression to evaluate on items to get a number to compare with.

Returns:

#expression=(expression) ⇒ Gtk::Expression

The expression to evaluate on items to get a number to compare with.

Parameters:

Returns:

#sort_orderGtk::SortType

Whether the sorter will sort smaller numbers first.

Returns:

#sort_order=(sort_order) ⇒ Gtk::SortType

Whether the sorter will sort smaller numbers first.

Parameters:

Returns: