Sometimes table data may be a small and in that case we dont want to make request to server again just for sorting for a few rows.
So I think it would be good option to select sorting side when use TableDataProvider.
Something like this:
pub enum SortingSide {
Client, // local sorting
Server, // server sorting
}
#[async_trait(?Send)]
impl TableDataProvider<T> for MyDataProvider {
type ColumnName = MyColumnName;
type SortingSide = SortingSide::Client;
...
}
Sometimes table data may be a small and in that case we dont want to make request to server again just for sorting for a few rows. So I think it would be good option to select sorting side when use
TableDataProvider
.Something like this: