Parameters to comparator functions should be const.