Bug 285160

Summary: When sorting by priority, 100%-completed tasks are sorted between 10% and 20%s
Product: [Applications] ktimetracker Reporter: Nico <abo>
Component: generalAssignee: Zoltan Gyarmati <mr.zoltan.gyarmati>
Status: RESOLVED FIXED    
Severity: minor CC: mr.zoltan.gyarmati
Priority: NOR    
Version: 4.6.x   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot example

Description Nico 2011-10-28 08:55:50 UTC
Created attachment 64972 [details]
screenshot example

Version:           4.6.x
OS:                Linux

Sorting by %-progress does not give expected results. One possible explanation would be that comparison between % values is string-wise, displaying 100% between 10% and 20%.

Reproducible: Always

Steps to Reproduce:
1. create three tasks in KTimeTracker
2. complete one to 10%, the second to 20% and the third to 100%
3. click on "progress percentage" to sort on these values

Actual Results:  
The completed tasks (100%) appear between tasks that are 10% and 20%-completed.

Expected Results:  
Completed tasks (100%) should be displayed last or first regarding sort order.

I don't think the bug depends on any configuration or circumstances.
Comment 1 Thorsten Staerk 2011-10-28 09:03:37 UTC
wow, sounds plausible. Will try to reproduce, but I think it is exactly like this.
Comment 2 Thorsten Staerk 2011-10-28 09:04:16 UTC
See also bug 225139
Comment 3 Zoltan Gyarmati 2014-12-06 15:54:45 UTC
Patch to fix this sent for review as: 
https://git.reviewboard.kde.org/r/121369/
Comment 4 Zoltan Gyarmati 2014-12-19 16:26:58 UTC
ID: 10c7cfb2aaf239c57d5e244ef7455a26732d0ba9
ktimetracker: sort progress percentage numerically and tasks case-insensitively
REVIEW: 121369