Sort or group descriptor with a selector and descending direction.
TxSort
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| selector | TxGetter<T> | required | Field path or getter for a query value. |
| desc | bool | false | Descending sort order. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
final sort = TxSort<int>((v) => v, desc: true);
print(txQuery([1, 2], TxLoadOptions(sort: [sort])).data);
}