added NaN test for check_ordered
added doc in code for check_ordered