NextSort cycles to the next sort field and re-sorts the rows.
()
| 146 | |
| 147 | // NextSort cycles to the next sort field and re-sorts the rows. |
| 148 | func (m *TableModel) NextSort() { |
| 149 | m.sortField = (m.sortField + 1) % len(m.columns) |
| 150 | m.sortRows() |
| 151 | m.syncInnerColumns() |
| 152 | } |
| 153 | |
| 154 | // SetSortField sets the sort field to a specific column index and updates |
| 155 | // the column header indicator without performing a local sort. Use this when |