Class: Gtk::NumericSorter
Instance Method Summary collapse
-
#expression ⇒ Gtk::Expression
The expression to evaluate on items to get a number to compare with.
-
#expression=(expression) ⇒ Gtk::Expression
The expression to evaluate on items to get a number to compare with.
-
#initialize(expression) ⇒ Gtk::NumericSorter
constructor
Creates a new numeric sorter using the given expression.
-
#sort_order ⇒ Gtk::SortType
Whether the sorter will sort smaller numbers first.
-
#sort_order=(sort_order) ⇒ Gtk::SortType
Whether the sorter will sort smaller numbers first.
Methods inherited from Sorter
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.
Instance Method Details
#expression ⇒ Gtk::Expression
The expression to evaluate on items to get a number to compare with.
#expression=(expression) ⇒ Gtk::Expression
The expression to evaluate on items to get a number to compare with.
#sort_order ⇒ Gtk::SortType
Whether the sorter will sort smaller numbers first.
#sort_order=(sort_order) ⇒ Gtk::SortType
Whether the sorter will sort smaller numbers first.