From 59e2d3556f5cedab74b7b5c44b85c8cde6005fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 12 Jul 2021 15:08:27 +0200 Subject: [PATCH] Sort file listings from Android Content URIs. May help #14607 --- Common/File/DirListing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/File/DirListing.cpp b/Common/File/DirListing.cpp index 04aef9e0f6..ea1f3a3040 100644 --- a/Common/File/DirListing.cpp +++ b/Common/File/DirListing.cpp @@ -164,6 +164,7 @@ size_t GetFilesInDir(const Path &directory, std::vector * files, const if (directory.Type() == PathType::CONTENT_URI) { std::vector fileList = Android_ListContentUri(directory.ToString()); *files = ApplyFilter(fileList, filter); + std::sort(files->begin(), files->end()); return true; }