Bug 308290

Summary: Contact not sorted by status
Product: [Unmaintained] telepathy Reporter: Cédric Bellegarde <web>
Component: contactlist-appletAssignee: Telepathy Bugs <kde-telepathy-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: hena18, kde, mklapetek, scarpino
Priority: NOR    
Version First Reported In: git-latest   
Target Milestone: Future   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.6.0
Sentry Crash Report:

Description Cédric Bellegarde 2012-10-12 11:25:38 UTC
Contact list plasmoid should sort contact by status by default.

Actually, contacts are just unsorted.

Reproducible: Always

Steps to Reproduce:
Add applets
Actual Results:  
Contact not sorted

Expected Results:  
Contact sorted by status

$ grep sortMode  ktp-contact-applet/org.kde.ktp.contactlist/contents/ui/ContactList.qml 
         contactList.filter.sortMode = KtpContactList.AccountsFilterModel.SortByPresence;

Seems this line is not working.
Comment 1 heena 2012-12-24 13:22:57 UTC
By default the list is sort by name ,to sort the contact list by presence that is availability click on the option (sort) adjacent to find contact option .



Cheers.
Comment 2 Martin Klapetek 2012-12-24 14:33:57 UTC
The original report is for the contact list plasmoid, which does not provide any options...yet ;)
Comment 3 Aleix Pol 2013-02-08 01:18:11 UTC
Git commit 154967b252db42d9c94bb73c3b61bce3979f1369 by Aleix Pol.
Committed on 08/02/2013 at 02:16.
Pushed by apol into branch 'master'.

Properly set what we're sorting by, after the changes in common-internals

Use the brand new sortRoleString property

Reviewed by David Edmundson

M  +1    -1    contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml

http://commits.kde.org/telepathy-contact-applet/154967b252db42d9c94bb73c3b61bce3979f1369