ensure that numbers differ from sorted numbers, fix #118660

alternative fix