summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/private/opimcontactsortvector.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libopie2/opiepim/private/opimcontactsortvector.cpp b/libopie2/opiepim/private/opimcontactsortvector.cpp
index 9e186fe..8c7d5ca 100644
--- a/libopie2/opiepim/private/opimcontactsortvector.cpp
+++ b/libopie2/opiepim/private/opimcontactsortvector.cpp
@@ -43,5 +43,5 @@ int OPimContactSortVector::compareItems( const OPimContact& left,
bool soTitle, soSummary, soFirstName, soMiddleName, soSuffix, soEmail,
- soNick, soAnni, soBirth, soGender;
+ soNick, soFileAs, soAnni, soBirth, soGender;
soTitle = soSummary = soFirstName = soMiddleName = soSuffix = soEmail =
- soNick = soAnni = soBirth = soGender = false;
+ soNick = soFileAs = soAnni = soBirth = soGender = false;
int ret = 0;
@@ -78,2 +78,6 @@ int OPimContactSortVector::compareItems( const OPimContact& left,
break;
+ case OPimContactAccess::SortFileAsName:
+ ret = testString( left.fileAs(), right.fileAs() );
+ soFileAs = true;
+ break;
case OPimContactAccess::SortAnniversary: