Hash function and less-than comparison