func (m Model) SortByAsc(columnKey string) Model {
	m.sortOrder = []SortColumn{
		{
			ColumnKey: columnKey,
			Direction: SortDirectionAsc,
		},
	}

	return m
}
// SortByAsc sets the main sorting column to the given key, in ascending order.
// If a previous sort was used, it is replaced by the given column each time
// this function is called.  Values are sorted as numbers if possible, or just
// as simple string comparisons if not numbers.
SortByAsc sets the main sorting column to the given key, in ascending order.
If a previous sort was used, it is replaced by the given column each time
this function is called.  Values are sorted as numbers if possible, or just
as simple string comparisons if not numbers.
// SortByAsc sets the main sorting column to the given key in ascending order . // If a previous sort was used it is replaced by the given column each time // this function is called . Values are sorted as numbers if possible or just // as simple string comparisons if not numbers .
func (m Model) SortByAsc(columnKey string) Model {
	m.sortOrder = []SortColumn{
		{
			ColumnKey: columnKey,
			Direction: SortDirectionAsc,
		},
	}
	return m
}
func ( m Model ) SortByAsc ( columnKey string ) Model { m . sortOrder = [ ] SortColumn { { ColumnKey : columnKey , Direction : SortDirectionAsc , } , } return m }
SortByAsc sets the main sorting column to the given key, in ascending order.
SortByAsc sets the main sorting column to the given key in ascending order .