-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index 5662af2..75bf474 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp @@ -117,4 +117,9 @@ void AddressBookPluginWidget::getAddress() { .arg( m_daysLookAhead ) + "</font> <br>"; + + // Sort filtered results + m_list = m_contactdb->sorted( m_list, true, Opie::OPimContactAccess::SortBirthday, + Opie::OPimContactAccess::FilterOff, NULL ); + for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) { if ( ammount++ < m_maxLinesTask ){ @@ -169,4 +174,9 @@ void AddressBookPluginWidget::getAddress() { .arg( m_daysLookAhead ) + "</font> <br>"; + + // Sort filtered results + m_list = m_contactdb->sorted( m_list, true, Opie::OPimContactAccess::SortAnniversary, + Opie::OPimContactAccess::FilterOff, NULL ); + for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) { if ( ammount++ < m_maxLinesTask ){ |