requireSorted

Checks that the Buffer is sorted (ascending) and throws IllegalArgumentException if it is not.