diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index c8a7f5b58..96ae9ab89 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -170,10 +170,6 @@ fun Context.getSortedDirectories(source: ArrayList): ArrayList o1.taken.compareTo(o2.taken) } - if (result == 0) { - result = AlphanumericComparator().compare(o1.path.toLowerCase(), o2.path.toLowerCase()) - } - if (sorting and SORT_DESCENDING != 0) { result *= -1 } 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 df6ef77c7..258cc2934 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 @@ -366,10 +366,6 @@ class MediaFetcher(val context: Context) { else -> o1.taken.compareTo(o2.taken) } - if (result == 0) { - result = AlphanumericComparator().compare(o1.path.toLowerCase(), o2.path.toLowerCase()) - } - if (sorting and SORT_DESCENDING != 0) { result *= -1 }