2.5.243 SortItem

The SortItem structure specifies the sort mapping from the old row/column index (before sort action) to the new row/column index (after sort action). An array of these structures is contained within a RRSort record.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

iNewIndex

iOldIndex

iNewIndex (4 bytes): An unsigned integer that specifies the new zero-based index of row or column. If the fCol field of the RRSort record that contains this structure is zero, then this value is a zero-based row index and MUST be within the range of rows specified in the ref8 field of the RRSort record that contains this structure. If the fCol field of the RRSort record that contains this structure is 1, then this value is a zero-based column index and MUST be within the range of columns specified in the ref8 field of the RRSort record that contains this structure.

iOldIndex (4 bytes): An unsigned integer that specifies the old zero-based index of row or column. If the fCol field of the RRSort record that contains this structure is zero, then this value is a zero-based row index and MUST be within the range of rows specified in the ref8 field of the RRSort record that contains this structure. If the fCol field of the RRSort record that contains this structure is 1, then this value is a zero-based column index and MUST be within the range of columns specified in the ref8 field of the RRSort record that contains this structure.