Use general object methods for set settings
Add comparator function
Use comparator function in set settings