diff -r fcb676ca077d -r fdbe8253b596 messagingapp/msgui/msgaudiofetcher/src/msgaudioselectionengine.cpp --- a/messagingapp/msgui/msgaudiofetcher/src/msgaudioselectionengine.cpp Wed Sep 01 14:19:13 2010 +0530 +++ b/messagingapp/msgui/msgaudiofetcher/src/msgaudioselectionengine.cpp Tue Sep 07 13:28:39 2010 +0530 @@ -22,6 +22,7 @@ #include #include #include +#include // USER INCLUDES #include "msgaudioselectionengine.h" @@ -135,6 +136,7 @@ } else { + QMap nameUriList; CMdEObjectQuery* query = static_cast (&aQuery); TInt count = query->Count(); for (TInt i = 0; i < count; ++i) @@ -153,11 +155,30 @@ property->TextValueL())); QString uriValue(XQConversions::s60DescToQString( object->Uri())); - iNameList.append(songName); - iUriList.append(uriValue); + + //insert into the map + nameUriList.insertMulti(uriValue, songName); } CleanupStack::PopAndDestroy(object); } + + //now get all the song names and sort them + iNameList = nameUriList.values(); + iNameList.sort(); + + // go through the song list and get the associated uri + // insert into the uri list + int nameListTotal = iNameList.count(); + for(int nameListCount = 0; + nameListCount