equal
deleted
inserted
replaced
102 leftEntry.iDetails.CompareC( rightEntry.iDetails ); |
102 leftEntry.iDetails.CompareC( rightEntry.iDetails ); |
103 break; |
103 break; |
104 } |
104 } |
105 case EFSMailSortBySubject: |
105 case EFSMailSortBySubject: |
106 { |
106 { |
107 // <cmail> due to changes in CompareSubject method |
107 result = CompareSubjects( leftEntry.iDescription, |
108 TRAP_IGNORE( result = CompareSubjectsL( |
108 rightEntry.iDescription ); |
109 leftEntry.iDescription, rightEntry.iDescription ) ); |
|
110 // </cmail> |
|
111 break; |
109 break; |
112 } |
110 } |
113 case EFSMailSortByPriority: |
111 case EFSMailSortByPriority: |
114 // The values of TMsvPriority are defined so that the highest |
112 // The values of TMsvPriority are defined so that the highest |
115 // priority has the smallest value |
113 // priority has the smallest value |
140 } |
138 } |
141 break; |
139 break; |
142 } |
140 } |
143 case EFSMailSortByUnread: |
141 case EFSMailSortByUnread: |
144 { |
142 { |
145 // In this context, an unread message is 'greater' than |
143 // In this context, an read message is 'greater' than |
146 // a read one |
144 // a read one |
147 if ( !leftEntry.Unread() && rightEntry.Unread() ) |
145 if ( !leftEntry.Unread() && rightEntry.Unread() ) |
148 { |
146 { |
149 result = KMoreThan; // <cmail> changed from KLessThan |
147 result = KMoreThan; // <cmail> changed from KLessThan |
150 } |
148 } |
210 |
208 |
211 // --------------------------------------------------------------------------- |
209 // --------------------------------------------------------------------------- |
212 // Strips the subject prefixes before comparing the strings |
210 // Strips the subject prefixes before comparing the strings |
213 // --------------------------------------------------------------------------- |
211 // --------------------------------------------------------------------------- |
214 |
212 |
215 TInt TIpsPlgMsgKey::CompareSubjectsL( |
213 TInt TIpsPlgMsgKey::CompareSubjects( |
216 const TDesC& aLeft, |
214 const TDesC& aLeft, |
217 const TDesC& aRight ) const |
215 const TDesC& aRight ) const |
218 { |
216 { |
219 FUNC_LOG; |
217 FUNC_LOG; |
220 TInt result( KEqual ); |
218 TInt result( KEqual ); |