overload checkSorted
Merge remote-tracking branch 'upstream/checkmeasure'