Changes to comparison function signatures (made arguments const).