Positive sequence and the reverse is sorting Iterate through group, judge whether a value is always greater than before, after less than a value, set a variable, when there is an error, change the value of a variable, after the traversal judge the value of the variable, the output