SERVER-10026 sort when not empty, fix interval comparison to strict weak
SERVER-11176 don't allow OOB legacy points to become spherical points
SERVER-10026 clean up logic for interval sorting comparison