Bug 455210

Summary: Sorting tasks for High priority first should show No priority tasks last
Product: [Applications] Merkuro Reporter: Schlaefer <openmail+kde>
Component: generalAssignee: Claudio Cambra <claudio.cambra>
Status: RESOLVED FIXED    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: 22.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Sorted by highest priority shows no-priority first

Description Schlaefer 2022-06-13 11:25:39 UTC
Created attachment 149661 [details]
Sorted by highest priority shows no-priority first

STEPS TO REPRODUCE
1. Create a task with "High" priority
2. Create a task with "Low" priority
3.  Create a task with no priority
4.  Sort task for "Priority" and "Ascending" 

OBSERVED RESULT
 
Tasks with no priority are grouped as priority 0 and the resulting sort order is "No" - "High" - "Low".

EXPECTED RESULT

The sort order should be "High" - "Low" - "No". Tasks with no priority should be shown after all tasks with a priority assigned.
Comment 1 Bug Janitor Service 2023-02-07 15:50:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kalendar/-/merge_requests/299
Comment 2 Simeet Nayan 2023-02-09 16:10:20 UTC
Git commit 7a843719cb63d2b7e7913793fdf08a3ff33825fb by Simeet Nayan.
Committed on 09/02/2023 at 16:06.
Pushed by clau-cambra into branch 'master'.

Changed comparator function to handle the special case

M  +3    -0    src/models/todosortfilterproxymodel.cpp

https://invent.kde.org/pim/kalendar/commit/7a843719cb63d2b7e7913793fdf08a3ff33825fb