diff --git a/src/libs/clangsupport/filepathcachinginterface.h b/src/libs/clangsupport/filepathcachinginterface.h index 098fd39ca92..53cdc3515b9 100644 --- a/src/libs/clangsupport/filepathcachinginterface.h +++ b/src/libs/clangsupport/filepathcachinginterface.h @@ -56,6 +56,8 @@ public: std::back_inserter(filePathIds), [&] (const auto &filePath) { return this->filePathId(filePath); }); + std::sort(filePathIds.begin(), filePathIds.end()); + return filePathIds; }