sort_region——对区域进行排序
2017-07-29 17:07
525 查看
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 parameterRowOrCol = 'row' these points will be sorted according to their row and then according to their column. By using 'column', the column value will be used first. The following values are available for the parameter SortMode:
'character'
The regions will be treated like characters in a row and will be sorted according to their order in the line: If two regions overlap horizontally, they will be sorted with respect to their column values, otherwise they will be sorted with regard to their row values. To be 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 with the lowest column value in the first row of the region.
'last_point'
The point with 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 will be increasing, using 'false' the order will be decreasing.
'character'
The regions will be treated like characters in a row and will be sorted according to their order in the line: If two regions overlap horizontally, they will be sorted with respect to their column values, otherwise they will be sorted with regard to their row values. To be 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 with the lowest column value in the first row of the region.
'last_point'
The point with 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 will be increasing, using 'false' the order will be decreasing.
相关文章推荐
- sort_region——对区域进行排序
- js sort方法根据数组中对象的某一个属性值进行排序
- matlab sortrows函数 对行进行排序
- 使用vector创建二维动态数组,并使用sort对其进行排序
- Lucene使用Sort方法对文档进行排序
- Spark 使用sortByKey进行二次排序
- 关于利用STL中的sort算法对向量等容器进行排序的问题
- 使用Collections.sort()方法扩展list集合中的数据并对其进行排序
- 在Python中使用sort()方法进行排序的简单教程
- java list集合使用Collections中的sort方法进行排序(Comparator)
- 用Collections.sort方法对现有的List重新进行排序
- Shell学习:sort、uniq命令对文本进行排序、单一和重复操作
- 利用STL中的sort算法对向量等容器进行排序
- Linux下用python对文件内容按列进行排序-功能等同于Linux下的sort命令对文件内容进行排序
- Arrays.sort()使用两种方式(Comparable和Comparator接口)对对象或者引用进行排序
- 【php数组函数序列】之sort() - 对数组的元素值进行升序排序
- JavaScript中用sort()方法对数组元素进行排序的操作
- JAVA中Arrays.sort()使用两种方式(Comparable和Comparator接口)对对象或者引用进行排序
- 排序例子2:使用sort()方法对数组进行排序
- Collections.sort方法(可以根据集合中类的属性的比较对集合内的类进行排序)