setSort method
Implementation
@internal
void setSort(DaviSort sort, int priority) {
if (sort.columnId != id) {
throw ArgumentError.value(sort.columnId, null,
'The columnId does not have the same value as the column identifier.');
}
if (!sortable) {
throw ArgumentError('Column is not sortable.');
}
_sort = sort;
_sortPriority = priority;
}