Bug 285160 - When sorting by priority, 100%-completed tasks are sorted between 10% and 20%s
Summary: When sorting by priority, 100%-completed tasks are sorted between 10% and 20%s
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: 4.6.x
Platform: Debian unstable Linux
: NOR minor
Target Milestone: ---
Assignee: Zoltan Gyarmati
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 08:55 UTC by Nico
Modified: 2014-12-19 16:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot example (86.25 KB, image/png)
2011-10-28 08:55 UTC, Nico
Details

Note You need to log in before you can comment on or make changes to this bug.
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