From 4b748b1c9917e3d4d3a5d6e96a1ef357115bb75b Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 4 Jan 2019 22:54:24 +0100 Subject: [PATCH] speed up file sorting, potentially creating minor inconsistencies --- .../simplemobiletools/gallery/pro/helpers/MediaFetcher.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt index 3978d0a49..a5912edce 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt @@ -369,11 +369,6 @@ class MediaFetcher(val context: Context) { else -> o1.taken.compareTo(o2.taken) } - // do just a quick extra sorting if the original sorting is equal, does not need to be accurate in all cases - if (result == 0 && sorting and SORT_BY_NAME == 0 && sorting and SORT_BY_PATH == 0) { - result = o1.name.compareTo(o2.name) - } - if (sorting and SORT_DESCENDING != 0) { result *= -1 }