I would like to sort the default contact database by the following fields:
Since both fields might contain data I want to apply the following rule: Sort the contact items by the contents of KUidContactFieldFamilyName; if this field is empty, then and only in this case use the contents of KUidContactFieldCompanyName and treat it like a family name.
By the way: The Series 60 contact application obviously uses a similar rule set for sorting.
The problem is that CContactDatabase::SortL(..) doen't provide the capability to do this - all fields without a family name but with a company name show up at the beginning of the list.
I would like to have the same list (sorted identically) as in Contact application.