[Bug 255398] New: KAddressbook shows names in wrong order

nebuchadnezzar_2069 at gmx.de nebuchadnezzar_2069 at gmx.de
Wed Oct 27 12:57:58 BST 2010


https://bugs.kde.org/show_bug.cgi?id=255398

           Summary: KAddressbook shows names in wrong order
           Product: kaddressbook
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: nebuchadnezzar_2069 at gmx.de
                CC: tokoe at kde.org


Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

If you have Contacts in your Addressbook with similar surnames, where one name
is longer then the other, e.g. "Peters" and "Peterson", then these will not be
sorted correctly. Simple Example, of how it would look like:

Peters, Andrew
Peters, Henry
Peterson, Julia
Peterson, Mike
Peters, Sonya
Peters, Stan

See, how the Petersons and the Peters are mixed up? If you delete the commas
and spaces between the names, you will see why:

PetersAndrew
PetersHenry
PetersonJulia
PetersonMike
PetersSonya
PetersStan

Seems like the sort algorithm does exectly that: Delete the commas and spaces
and then take the whole string and sort it. In this case, it produces a wrong
result.

Instead of this, it should rather first sort by surename, then by forename.
Would be even better, if one could choose, by which fields to sort in what
order. That way you could sort your contacts by location first, then by name.
Or one could sort by organisation, then by department and then by name etc.

Reproducible: Always

Steps to Reproduce:
Create Contacts with the names shown in the description and show them as
"surname, forename" or "surename forename" (with or without comma).

Actual Results:  
These Contacts will be shown in wrong order.

Expected Results:  
They should be shown in correct order (sorted by surname first, then by given
name).

OS: Linux (x86_64) release 2.6.35-22-generic
Compiler: cc

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list