Bug 140261

Summary: Erroneous contact list ordering
Product: [Unmaintained] kopete Reporter: Torquil Macdonald Sørensen <torquil>
Component: Contact listAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.12.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Torquil Macdonald Sørensen 2007-01-18 18:34:16 UTC
Version:           0.12.3 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-5 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.18-3-686

I have a contact with a name beginning with the letter A. He should therefore be sorted first on my contact list, but he is sorted below everyone else when he is "Online". Even below the contacts that are "Away".

When he is Away, he is sorted correctly, i.e. at the top of all contacts that are Away.

When I rename him to something beginning with another letter, he is correctly sorted.

It is a Jabber/Google Talk account. All contacts are in the same group "Friends". In the preferences, I have "Arrange metacontacts by group" activated.

When looking at contactlist.xml, I couldn't find any difference between him and the other contacts, only different date values and different links to png-photos.

The problem persists in "Detailed view" on the "Contact Display Mode" in the preferences.

I'm using the no_NO.utf8 locale.

Best regards
Comment 1 Torquil Macdonald Sørensen 2007-04-17 17:20:02 UTC
When using the british locale en_GB.UTF-8, there is no problem. When using the norwegian no_NO.UTF-8, the contact list ordering is incorrect. The contact (with "Online" status) with a name beginning with the letter A, is put at the bottom. Even below the contacts that have status "Away".

Best regards,
Torquil M. Sørensen
Comment 2 Torquil Macdonald Sørensen 2007-10-06 15:39:00 UTC
This bug is still present in Kopete 0.12.5, with KDE 3.5.7
Comment 3 Torquil Macdonald Sørensen 2007-12-09 00:25:25 UTC
The contact list is correct for the first few tenths of a second after logging on, but then it is rearranged wrongly. It uses a delayedSort() function, so this seems sensible. This again employs the QListView::sort() function from QT, which again uses QString::localeAwareCompare() if I understood the code correctly. But I have not found any bugs reported against the QT sorting code from Norwegian locale users, which seems a bit strange, if this is the culprit.

Notice that I am now using the nb_NO.UTF-8 locale, which seems to have superseded no_NO.UTF-8 for the Norwegian language in Debian. The problem still persists, though.

Maybe it will be automatically fixed with the transition to QT4.

Kopete 0.12.7
KDE 3.5.8
Comment 4 Roman Jarosz 2009-03-30 10:02:44 UTC
Fixed in trunk (SVN commit 946606) will be in KDE 4.3