Skip to content

Commit

Permalink
Update ordering.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe authored and simolus3 committed Oct 21, 2024
1 parent 2cd568a commit 044da32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drift/lib/src/runtime/manager/ordering.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ class ColumnOrderings<T extends Object> {

/// Sort this column in ascending order
///
/// 10 -> 1 | Z -> A | Dec 31 -> Jan 1
/// 1 -> 10 | A -> Z | Jan 1 -> Dec 31
ComposableOrdering asc() =>
$composableOrdering({OrderingBuilder(OrderingMode.asc, column)});

/// Sort this column in descending order
///
/// 1 -> 10 | A -> Z | Jan 1 -> Dec 31
/// 10 -> 1 | Z -> A | Dec 31 -> Jan 1
ComposableOrdering desc() =>
$composableOrdering({OrderingBuilder(OrderingMode.desc, column)});
}
Expand Down

0 comments on commit 044da32

Please sign in to comment.