partial application function is decorated with the comparator