set_comparator(a_comparator)
Set a custom comparator to the instance.
A custom comparator script must have following specification.
- do handler which have two positional parameters.
- do handler return following values
- 1 : first argument > second argument
- 0 : first argument = second argument
- -1 : first argument < second argument
Parameters
- a_comparator (script object)
Result
script object : me