MCPcopy
hub / github.com/moncho/dry / NextSort

Method NextSort

appui/table_model.go:148–152  ·  view source on GitHub ↗

NextSort cycles to the next sort field and re-sorts the rows.

()

Source from the content-addressed store, hash-verified

146
147// NextSort cycles to the next sort field and re-sorts the rows.
148func (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

Callers 13

TestTableModel_NextSortFunction · 0.95
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80

Calls 2

sortRowsMethod · 0.95
syncInnerColumnsMethod · 0.95