test if a given array obeys the natural order of numbers