fixed distance to be ordered numerically rather than ascii ordering