(i, j int)
| 179 | } |
| 180 | |
| 181 | func (ap archivingPatch) Less(i, j int) bool { |
| 182 | for _, columnID := range ap.sortColumns { |
| 183 | iValue := ap.GetDataValue(i, columnID) |
| 184 | jValue := ap.GetDataValue(j, columnID) |
| 185 | res := iValue.Compare(jValue) |
| 186 | if res != 0 { |
| 187 | return res < 0 |
| 188 | } |
| 189 | // Tie, move on to next sort column. |
| 190 | } |
| 191 | return false |
| 192 | } |
| 193 | |
| 194 | // GetDataValue reads value from underlying columns after sorted. |
| 195 | func (ap *archivingPatch) GetDataValue(row, columnID int) memCom.DataValue { |
nothing calls this directly
no test coverage detected