The operator sort_region sorts the regions with respect to their relative position. All sorting methods with the exception of ' character ' use one point of the region. With the help of the parameter Roworcol = ' Row ' These points'll be sorted according to their row and then according to T Heir column. By using ' column ', the column value would be used first. The following values is available for the parameter sortmode:
' Character '
The regions would be treated as characters in a row and would be sorted according to their order in the Line:if NS overlap horizontally, they'll be sorted with respect to their column values, otherwise they would be sorted with Regar D to their row values. To is able to sort a line correctly, all regions in the line must overlap each other vertically. Furthermore, the regions in adjacent rows must not overlap.
' First_point '
The point and the lowest column value in the first row of the region.
' Last_point '
The point and the highest column value in the last row of the region.
' Upper_left '
Upper left corner of the surrounding rectangle.
' Upper_right '
Upper right corner of the surrounding rectangle.
' Lower_left '
Lower left corner of the surrounding rectangle.
' Lower_right '
Lower right corner of the surrounding rectangle.
The parameter order determines whether the sorting order is increasing or decreasing:using ' true ' the order would be incre Asing, using ' false ', the order would be decreasing.