Legend: adapt sort functions for measure to regard __cv_temporaryNewValue