Made sorting functors const