CCExtractor / CCExtractor/taskwarrior-flutter

Improve priority sorting by using due date as secondary key

Đang mở
#527 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Dart
Star
244
Fork
179
Merge trung bình
12 giờ 42 phút
Pull request đã merge (30 ngày)
2

Mô tả

### Describe your improvement idea or feature request

Currently, when tasks are sorted by priority, tasks with the same priority are not ordered further, which can lead to inaccurate or confusing ordering.

For example, multiple tasks with priority H appear in an arbitrary order instead of being ordered by urgency or due date.

### How would you like to see it implemented?

1. Sort tasks by priority as the primary key (H > M > L).
2. When two tasks have the same priority, sort them by due date.
3. Tasks without a due date should appear after tasks with a due date.
4. Keep the logic local to each sorting implementation to match existing patterns and avoid cross-layer refactors.

### Put here any screenshots or videos (optional)

Before:
![Image](https://github.com/user-attachments/assets/121d2ade-6d3e-4f5f-9a72-086e096d60da)

After:
![Image](https://github.com/user-attachments/assets/0439faca-df15-4782-b4ad-7d0c54722d80)

### How can we contact you (optional)

_No response_

### Would you like to work on this issue?

Yes

### By submitting this issue, I have confirmed that:

- [x] I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.