diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java b/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java index 4329d63ae7..f5eb0568fb 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java @@ -116,7 +116,7 @@ public class PreviewImagePagerAdapter extends FragmentStatePagerAdapter { mImageFiles = mStorageManager.getVirtualFolderContent(type, true); if (type == VirtualFolderType.PHOTOS) { - mImageFiles = FileStorageUtils.sortOCFilesByDate(mImageFiles); + mImageFiles = FileStorageUtils.sortOcFolderDescDateModified(mImageFiles); } mObsoleteFragments = new HashSet();