checks an arbitrarily long list of numbers for ascending order