Update change log and spec for wrt-plugins-tizen_0.4.27
[framework/web/wrt-plugins-tizen.git] / src / Contact / ContactSearchEngine.cpp
index 236ea64..37a3aed 100755 (executable)
@@ -224,7 +224,10 @@ ContactArrayPtr ContactSearchEngine::getContactSearchResult()
                                        attributePropertiesMap.find(m_attributeNameForSort);
                        AttributeProperties &property = iter->second;
 
-                       result = getAllContactsSorted(property, m_sortOrder);
+                       if(m_sortOrder == ASCENDING_SORT_ORDER)
+                               result = getAllContactsSorted(property, true);
+                       else
+                               result = getAllContactsSorted(property, false);
                }
                else
                {