From 28ccb7669a709224a445a9b4b7accb646ef7c437 Mon Sep 17 00:00:00 2001 From: santhosh Date: Wed, 31 Jul 2013 15:03:03 +0530 Subject: [PATCH] Fix for 47838 Change-Id: Id4b80a637b8bccb843561462686aa2272bf85be0 Signed-off-by: santhosh --- src/GlAlbumListPresentationModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GlAlbumListPresentationModel.cpp b/src/GlAlbumListPresentationModel.cpp index f3306a1..7cd26e6 100644 --- a/src/GlAlbumListPresentationModel.cpp +++ b/src/GlAlbumListPresentationModel.cpp @@ -80,6 +80,7 @@ static const String RESERVED_CAMERA_PATH = Environment::GetMediaPath() + L"Camer static const String RESERVED_CAMERA_PATH_EXT = Environment::GetExternalStoragePath() + L"Camera"; static const String RESERVED_DOWNLOAD_PATH = Environment::GetMediaPath() + L"Downloads"; static const String CONTENT_INFO_ORDER = L"ContentFileName"; +static const String DATE_TIME = L"DateTime"; static const int FORMAT_BUFFER_SIZE = 256; @@ -875,8 +876,10 @@ AlbumListPresentationModel::GetContentIdListInDirectoryN(const String& directory int pageNo = 1; int countPerPage = directory.GetContentDirectoryItemCount(contentDirectoryPath); + IList* pContentInfoList = directory.GetContentDirectoryItemListN(contentDirectoryPath, pageNo, countPerPage, - CONTENT_INFO_ORDER, SORT_ORDER_ASCENDING); + DATE_TIME, SORT_ORDER_DESCENDING); + IList* pContentIdList = new (std::nothrow) ArrayList(SingleObjectDeleter); if ((pContentInfoList != null) && (pContentInfoList->GetCount() > 0)) -- 2.7.4