(i, j int)
| 300 | } |
| 301 | |
| 302 | func (m *reflectTableModel) Less(i, j int) bool { |
| 303 | col := m.SortedColumn() |
| 304 | |
| 305 | if lt := m.lessFuncs[col]; lt != nil { |
| 306 | ls := lt(i, j) |
| 307 | |
| 308 | if m.SortOrder() == SortAscending { |
| 309 | return ls |
| 310 | } else { |
| 311 | return !ls |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | return less(m.Value(i, col), m.Value(j, col), m.SortOrder()) |
| 316 | } |
| 317 | |
| 318 | func (m *reflectTableModel) Swap(i, j int) { |
| 319 | vi := m.value.Index(i) |
nothing calls this directly
no test coverage detected