setOrders method
Sets the sort order collection.
This replaces the entire orders collection. If you want to just change the active order, use setActiveOrder instead.
Implementation
void setOrders(SortOrderCollection<T>? orders) {
_orders = orders;
_applySortingToCurrentState();
}