Bug 263882 - Sort by Date in result of Searchdialog didn't sort in the right way
Summary: Sort by Date in result of Searchdialog didn't sort in the right way
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 16:06 UTC by Samuel Suther
Modified: 2011-01-24 19:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
wrong sortorder by german date (380.59 KB, image/jpeg)
2011-01-21 16:07 UTC, Samuel Suther
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Suther 2011-01-21 16:06:37 UTC
Version:           1.13.5 (using KDE 4.5.5) 
OS:                Linux

German system: If i do a Search in Kmail and got some Mails as result.
I click on the upper-column-header "Date" to sort ist ASC odr DESC.

German Date is like:
01.02.2011
02.02.2000
03.02.2011

And thats the Problem, seems the sorting funktion sort from first-char to last-char...
thats works for 2010-01-20, but not for  20.02.2010.

Here is needed to convert german date into englishdate, before sorting!

Reproducible: Always

Steps to Reproduce:
Make a search,
sort my date, if u see german date-format

Actual Results:  
wrong sorting

Expected Results:  
right sorting

OS: Linux (i686) release 2.6.32-25-generic
Compiler: cc
Comment 1 Samuel Suther 2011-01-21 16:07:26 UTC
Created attachment 56295 [details]
wrong sortorder by german date
Comment 2 Laurent Montel 2011-01-21 18:29:03 UTC
Yes it's a bug because it filtres as a qstring and not a qdate.
Comment 3 Laurent Montel 2011-01-21 20:05:18 UTC
SVN commit 1216178 by mlaurent:

Fix Bug 263882 - Sort by Date in result of Searchdialog didn't sort in the right way
Now we can sort it :)
BUG: 263882


 M  +25 -1     searchwindow.cpp  
 M  +13 -0     searchwindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1216178
Comment 4 Laurent Montel 2011-01-24 19:09:31 UTC
Git commit 80b976e31d64d63cb71a76228f6d4ad64195e945 by Laurent Montel.
Pushed by tnyblom into branch '4.4'.

Fix Bug 263882 - Sort by Date in result of Searchdialog didn't sort in the right way
Now we can sort it :)
BUG: 263882

M  +25   -1    kmail/searchwindow.cpp     
M  +13   -0    kmail/searchwindow.h     

http://commits.kde.org/ee6cc38b/80b976e31d64d63cb71a76228f6d4ad64195e945