Base for grid calibration, sort function on pattern.