Merge branch 'patch/JAL-4062_sort_and_merge_contiguousregions' into develop