Skip to content

Commit 5975f30

Browse files
committed
💥 Change sort order
1 parent cc24b29 commit 5975f30

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Docs/Sorting.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ plan today --sort-by schedule.start.in:desc
77
plan today --sort-by schedule.start.in:asc,calendar.id
88
```
99

10-
The default sorting depends on the use case
10+
The default sorting is:
1111

12-
- *today* `schedule.start.at`
13-
- *next* `schedule.start.in`
12+
`schedule.start.in:asc`
1413

1514
Most fields of the JSON can be used for sorting
1615

Sources/Model/Order.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class Order: ArgumentParser.ExpressibleByArgument, Hashable {
2525
hasher.combine(direction)
2626
}
2727

28-
static let Default: Order = .parse(s: "schedule.end.in:desc")!
28+
static let Default: Order = .parse(s: "schedule.start.in:asc")!
2929

3030
static func == (lhs: Order, rhs: Order) -> Bool {
3131
return lhs.field == rhs.field && lhs.direction == rhs.direction

0 commit comments

Comments
 (0)