It derives from <GtkSorter>.
Sorts items numerically.
To obtain the numbers to compare, this sorter evaluates a
<GtkExpression>.
The expression to evaluate on items to get a number to compare with.
Its value is a <GtkExpression>, or #f.
Set it with (set! (numeric-sorter:expression self) value).
Whether the sorter will sort smaller numbers first.
Its value is a <GtkSortType> (or, to set it, one
of its symbols).
Set it with (set! (numeric-sorter:sort-order self) value).
Gets the expression that is evaluated to obtain numbers from items.
Passed: a <GtkNumericSorter>.
Returned: a <GtkExpression>, or #f.
Gets whether this sorter will sort smaller numbers first.
Passed: a <GtkNumericSorter>.
Returned: a <GtkSortType>.
the order of the numbers
Creates a new numeric sorter using the given expression.
Smaller numbers will be sorted first. You can call
numeric-sorter:set-sort-order
to change this.
Passed, or left out: a <GtkExpression>, or
#f.
The expression to evaluate
Returned: a <GtkNumericSorter>.
a new <GtkNumericSorter>
Sets the expression that is evaluated to obtain numbers from items.
Unless an expression is set on self, the sorter will always compare items as invalid.
The expression must have a return type that can be compared numerically,
such as G_TYPE_INT or G_TYPE_DOUBLE.
Passed: a <GtkNumericSorter>.
Passed, or left out: a <GtkExpression>, or
#f.
Sets whether to sort smaller numbers before larger ones.
Passed: a <GtkNumericSorter>.
Passed: a <GtkSortType>, or one of its symbols.
whether to sort smaller numbers first