added NaN test for check_positive_ordered
added doc in code for check_positive_ordered